Login | Register
My pages Projects Community openCollabNet

Discussions > users > Q regarding symlink behaviour

fsvs
Discussion topic

2020-03-13: This site is going to be decommissioned and shut down very soon. Please copy and archive any data you wish to keep ASAP

Hide all messages in topic

All messages in topic

Re: Q regarding symlink behaviour

Author Peter Rabbitson <rabbit+list at rabbit dot us>
Full name Peter Rabbitson <rabbit+list at rabbit dot us>
Date 2009-04-23 06:23:46 PDT
Message P.Marek wrote:
> Hello everybody!
>
> I'd like to ask about some behaviour that FSVS should show.
>
> Please assume this directory tree:
> A/
> file
> B/
> file
> and a symlink
> C -> A
>
> Now this gets committed, and the "file"s change their data; and the symlink points to B.
>
> What should a
> fsvs ci C/file
> do?
>
> 1) Give an error, because C is not a directory
> 2) Commit B/file (and nothing else), because this *target* was chosen
> 3) Commit C as pointing to B now
> 4) 2+3 together
>
> I'm not sure what the right behaviour is ... all of these variants have some sunny side.
>
> Any ideas? Opinions?
> Thanks in advance.

IMHO 4 is correct (2 + 3). It is consistent with how fsvs behaves when you
say fsvs ci a/b/c/file and a b or c have metadata modification on them
(such modifications get committed). C being a symlink, not a "symlink to X"
should get its data/metadata change committed as well.

Cheers

Q regarding symlink behaviour

Author pmarek
Full name P.Marek
Date 2009-04-23 05:29:59 PDT
Message Hello everybody!

I'd like to ask about some behaviour that FSVS should show.

Please assume this directory tree:
   A/
     file
   B/
     file
and a symlink
   C -> A

Now this gets committed, and the "file"s change their data; and the symlink points to B.

What should a
   fsvs ci C/file
do?

1) Give an error, because C is not a directory
2) Commit B/file (and nothing else), because this *target* was chosen
3) Commit C as pointing to B now
4) 2+3 together

I'm not sure what the right behaviour is ... all of these variants have some sunny side.

Any ideas? Opinions?
Thanks in advance.


Regards,

Phil

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