Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Questions about ignoring files

fsvs
Discussion topic

Back to topic list

Re: Questions about ignoring files

Author pmarek
Full name P.Marek
Date 2008-07-15 11:16:40 PDT
Message On Tuesday 15 July 2008 Maurice van der Pot wrote:
> On Tue, Jul 15, 2008 at 03:51:10PM +0200, Philipp Marek wrote:
> > Hello Maurice,
> >
> > > On Sat, Jul 12, 2008 at 02:35:32PM +0200, Philipp Marek wrote:
> > >> And the ignore patterns are versioned - as soon as your
> > >> $FSVS_CONF/$WC_DIR/Ign file is versioned, too (for /etc as WC and
> > >> default-config you'll get that automatically - eg.
> > >> "/etc/fsvs/182f153bd​94803955c2043e6f2581​d5d/Ign")
> > >
> > > Won't I have a problem if I check out someplace else?
> > > If I add $FSVS_CONF/$WC_DIR/Ign on host A and check out on host B,
> > > won't the Ign file be under the wrong $WC_DIR?
> >
> > Yes, if $FSVS_CONF is different it won't match.
>
> I plan to use the same value for FSVS_CONF everywhere (${HOME}/.fsvs),
> but I mean that the WC_DIR (182f153bd94803955c2​043e6f2581d5d in your
> example) changes. It looks like a hash and although I don't know what is
> used to create it,
The hash is simply MD5(wcroot) - so /etc will be
182f153bd94803955c20​43e6f2581d5d on *every* machine.

But FSVS_CONF will be different in your example - because $HOME differs, or am
I wrong here?

> it obviously will have to be different for a second
> checkout on the same machine with the same value for FSVS_CONF (not that
> that is a use-case for me).
Of course - different WC-roots get different hashes.

> > But do you use anything else than /etc/fsvs? Oh yes, you said you're
> > versioning your /home. Do you commit as user, or are these backups
> > started per cron as root? You could try to do "chown <user>
> > /etc/fsvs/<wc-dir>", and use a per-user WAA.
>
> I'm using fsvs as a normal user with FSVS_CONF=${HOME}/.fsvs and
> FSVS_WAA=${FSVS_CONF}/waa. I'm using this with just this one account.
IIUYC, you have just one account *per machine*, right?

> I only add 'important' configuration files to version management and
> commit whenever I have changed one of them. I add pretty much everything
> else in my homedir to the ignore list.
>
> I want to use this to easily check out the set of configuration files to
> my homedir on other machines.
And on these other machines you have a different $HOME?

> > > How can I version the ignore list in such a way that when I check out
> > > on a different machine the ignore list still works?
> > >
> > > The best way I can come up with now is to hard-link it to a location
> > > under the repository root and add that file to version control,
> > > although that will be a manual action that has to be repeated for each
> > > check-out.
> >
> > I'd try to use a symlink rather than a hardlink.
>
> A symlink in ${FSVS_CONF}/${WC_DIR}.. I'll see if that works.

> > I can't quite follow your setup or requirements - but might it be an idea
> > to use a dummy "ignore" file that has an update- and commit-pipe set, eg.
> > to "cat $FSVS_CONF/xx/Ign"?
>
> That's also an option. Will keep that one in mind.
>
> In either case, setting this up will still depend on the actual WC_DIR.
> I'm still hoping the hash only depends on the directory where the
> checkout is done.
Yes, it does.

And now I may have another way for your setup - use the softroot option.

Ie. set FSVS_SOFTROOT=$HOME FSVS_CONF=/.fsvs FSVS_WAA=$FSVS_CONF/waa, and tell
FSVS to keep $HOME versioned - that will have the same hash everywhere
(6666cd76f96956469e7​be39d750cc7d9), and the machine-dependent $HOME is done
via the softroot.


Score +1 for the flexibility of FSVS ;-)


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 12 of 20 | Next message in topic »

Messages

Show all messages in topic

Questions about ignoring files griffon26 Maurice van der Pot 2008-07-06 15:27:51 PDT
     Re: Questions about ignoring files pmarek P.Marek 2008-07-12 05:35:32 PDT
         Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-12 05:55:44 PDT
             Re: Questions about ignoring files pmarek P.Marek 2008-07-12 06:59:03 PDT
                 Re: Questions about ignoring files pmarek P.Marek 2008-07-12 07:02:53 PDT
                 Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-13 11:21:28 PDT
                     Re: Questions about ignoring files pmarek P.Marek 2008-07-14 08:40:14 PDT
             Re: Questions about ignoring files Sheldon Hearn <sheldonh at starjuice dot net> Sheldon Hearn <sheldonh at starjuice dot net> 2008-07-12 07:16:43 PDT
         Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-15 05:20:28 PDT
             Re: Questions about ignoring files pmarek P.Marek 2008-07-15 06:51:10 PDT
                 Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-15 09:23:47 PDT
                     Re: Questions about ignoring files pmarek P.Marek 2008-07-15 11:16:40 PDT
                         Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-15 14:07:06 PDT
                             Re: Questions about ignoring files pmarek P.Marek 2008-07-15 22:17:07 PDT
                                 Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-17 03:58:04 PDT
                                     Re: Questions about ignoring files pmarek P.Marek 2008-07-17 04:13:38 PDT
                                         Re: Questions about ignoring files griffon26 Maurice van der Pot 2008-07-18 10:54:56 PDT
                                             Re: Questions about ignoring files [PATCH] pmarek P.Marek 2008-07-18 11:58:38 PDT
                             Re: Questions about ignoring files pmarek P.Marek 2008-07-16 20:37:21 PDT
                             Re: Questions about ignoring files pmarek P.Marek 2008-07-17 10:22:56 PDT
Messages per page: