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 griffon26
Full name Maurice van der Pot
Date 2008-07-15 09:23:47 PDT
Message 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, 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).

> 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.

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.

> > 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.

Regards,
Maurice.

--
Maurice van der Pot

Gentoo Linux Developer griffon26 at gentoo dot org http://www.gentoo.org
Gnome Planner Developer griffon26 at kfk4ever dot com http://live.gnome.org/Planner
Attachments

« Previous message in topic | 11 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: