Login | Register
My pages Projects Community openCollabNet

Discussions > users > Can fsvs automatically find the repository to use for a commit with multiple URLs?

fsvs
Discussion topic

Back to topic list

Can fsvs automatically find the repository to use for a commit with multiple URLs?

Author farzy
Full name Farzad FARID
Date 2008-10-03 08:14:10 PDT
Message Hi,

I setup a test system, using FSVS 1.1.16, with 2 repositories, and one working
directory, as follows:

WC:
/usr/src/FSVS/etc
URLs:
N:base,P:100,file://​/usr/src/FSVS/repos/​base/trunk/etc
N:local,P:200,file:/​//usr/src/FSVS/repos​/machines/M0379/etc

The WC is a copy of my "/etc" directory. Following this howto (http://fsvs-
software.org/doc/dox​ygen-gif/group__howt​o__master__local.htm​l), I commited
some files to the "local" repository, and all the other files to the "base"
repository.

Now, for example, I modify "/usr/src/FSVS/etc/hostname". If if commit without
giving the "commit_to" option, I get an error message:


# fsvs commit -m "Touched file" hostname
Which URL would you like to commit to?
Please choose one (config option "commit_to").


But "hostname" is already in the correct repository:


# fsvs info hostname
.m.? 16 hostname
        Type: file
        URL: file:///usr/src/FSVS​/repos/machines/M037​9/etc/hostname
        Status: 0x28 (mtime, likely)
        Flags: 0x0 (none)
        Dev: 65024
        Inode: 2166935
        Mode: 0100644
        UID/GID: 0 (root)/0 (root)
        MTime: Fri Oct 3 16:02:12 2008
        CTime: Fri Oct 3 16:02:12 2008
        WAA-Path: /var/spool/fsvs/ea/4​5/33db34f563d21d08b4​066d2f4ccf/
        Revision: 6
        Repos-MD5: 90dc9df7334df5036bd8​8b3dc3a0055c
        Size: 16


Moreover, if I set "commit_to=base" in the "config" file, I will get an even
worse error message:


# fsvs commit -m "Touched file" hostname
Committing to file:///usr/src/FSVS​/repos/base/trunk/et​c
.m.. 16 hostname


An error occurred: Filesystem has no item (160013)
  in ci__directory: open_file


I thought that FSVS would automatically know where to commit the file, why
doesn't this work?

Can I use FSVS with 2 URLs without having to use "-o commit_to" and/or with
having a conflict if the default "commit_to" is not the one associated with som
of the files I want to commit?

Shouldn't the priority field play the same role as the default "commit_to" in
the config file?

Regards,


--
Farzad FARID / Architecte Open Source - AssociƩ
Pragmatic Source / http://www.pragmatic-source.com
Tel : +33 9 53 19 21 90 / Mob : +33 6 03 70 65 46
Attachments

« Previous message in topic | 1 of 8 | Next message in topic »

Messages

Show all messages in topic

Can fsvs automatically find the repository to use for a commit with multiple URLs? farzy Farzad FARID 2008-10-03 08:14:10 PDT
     Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? pmarek P.Marek 2008-10-03 09:25:58 PDT
         Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? pmarek P.Marek 2008-10-05 08:41:28 PDT
             Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? griffon26 Maurice van der Pot 2008-10-05 08:48:02 PDT
                 Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? pmarek P.Marek 2008-10-05 09:59:20 PDT
             Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? mmm4m5m Mmm Mmm 2008-10-05 13:27:52 PDT
     Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? pmarek P.Marek 2008-10-03 10:45:23 PDT
         Re: Can fsvs automatically find the repository to use for a commit with multiple URLs? farzy Farzad FARID 2008-10-06 07:55:06 PDT
Messages per page: