On Monday 24 July 2006 18:42 Brett Neumeier wrote:
> For some time I have been interested in setting up version control for
> all of the configuration files on my computer. fsvs appears to be very
> close to what I've been looking for, so I am trying to get started
> with it. I'm using fsvs 1.0.11.
>
> The one thing I am having trouble with is the ignore patterns. In many
> cases, a directory has some large number of files, and I want to
> version exactly one of them, no matter what files exist in that
> directory in the future. Like for example, I want to version
> /data/pgsql/postgresql.conf but I don't want to version anything else
> under /data/pgsql.
>
> What I have tried doing is defining ignores like this:
>
> t./data/pgsql/postgresql.conf
> ./data/pgsql
>
> However, the result is that all of /data/pgsql is ignored, including
> the postgresql.conf file. If I then try "fsvs add
> ./data/pgsql/postgresql.conf" I get a segementation fault.
You're right. I tested this; "fsvs add" only works if the working
copy has been committed.
I'll repair that ASAP. Thank you for the bug report.
> I've tried putting the "take" pattern in front of and behind the
> "ignore" pattern. It doesn't seem to matter.
The "problem" with ignore pattern is that they're added.
So once you've defined ignore patterns there's no commandline
switch to remove them - you might have them given in wrong order
or something like that.
Take a look at what is really defined:
$ fsvs ignore dump
I made a short test:
/tmp$ mkdir asf
/tmp$ cd asf/
/tmp/asf$ ls
/tmp/asf$ fsvs
Nothing to see here.
/tmp/asf$ mkdir -p data/pgsql
/tmp/asf$ touch data/pgsql/postgres.conf
/tmp/asf$ touch data/pgsql/other1 data/pgsql/other2
/tmp/asf$ mkdir others
Now there's something to see:
/tmp/asf$ ~/svk/fsvs/fsvs/src/fsvs st
N... 0 ./data/pgsql/postgres.conf
N... 0 ./data/pgsql/other1
N... 0 ./data/pgsql/other2
N... 4096 ./data/pgsql
N... 4096 ./data
N... 4096 ./others
/tmp/asf$ ~/svk/fsvs/fsvs/src/fsvs ignore t./data/pgsql/postgresql.conf
./data/pgsql/
/tmp/asf$ ~/svk/fsvs/fsvs/src/fsvs st
N... 4096 ./data/pgsql
N... 4096 ./data
N... 4096 ./others
/tmp/asf$ ~/svk/fsvs/fsvs/src/fsvs st
N... 4096 ./data/pgsql
N... 4096 ./data
N... 4096 ./others
> Is there any way for me to do what I want?
You can try something like this.
To clear the list:
$ false | fsvs ignore load
Now you can define your patterns afresh.
Or you dump the patterns into a file:
$ fsvs ignore dump > /tmp/patterns
edit them with your favorite editor
$ vi /tmp/patterns
and load them again:
$ fsvs ignore load < /tmp/patterns
> Thanks!
Thank you for trying fsvs!
If that doesn't solve your problem, or you've got any other questions,
don't hesitate to ask.
Regards,
Phil
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]