Login | Register
My pages Projects Community openCollabNet

Discussions > users > fsvs revert: problems with meta-data and symlinks

fsvs
Discussion topic

Back to topic list

fsvs revert: problems with meta-data and symlinks

Author Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name>
Full name Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name>
Date 2008-05-08 12:14:56 PDT
Message When creating an object that did not exist locally before, `fsvs
revert` does not seem to recreate symlinks and to restore file
meta-data from the repository.

The following steps should be reproduceable with both a vanilla fsvs
1.1.15 and fsvs 1.1.14-1 taken from the Debian repository. First I
created a "source directory" and committed its contents:

| $ mkdir svn test1 test2
| $ svnadmin create svn/
| $ cd test1/
| $ fsvs urls file:///home/paul/fsvs/svn
| $ echo x >blech
| $ ln -s foo bar
| $ ls -l
| total 4
| lrwxrwxrwx 1 paul users 3 May 8 20:53 bar -> foo
| -rw-r--r-- 1 paul users 2 May 8 20:53 blech
| $ fsvs commit -m ""
| Committing to file:///home/paul/fsvs/svn
| N... 2 blech
| N... 3 bar
| committed revision 1 on 2008-05-08T18:54:01.515226Z as paul
| $

Then I tried to clone the two objects ("bar" and "blech") using fsvs:

| $ cd ../test2/
| $ fsvs urls file:///home/paul/fsvs/svn
| $ fsvs sync-repos
| N... 0 bar
| N... 0 blech
| ..C. dir .
| sync-repos for file:///home/paul/fsvs/svn rev 1.
| $ fsvs revert bar blech
| Reverting to revision 1:
| Dm.. 8 bar
| Dm.. 2 blech
| $

Unfortunately, fsvs does not recreate "bar" as a symlink and it does
not set an access mode of 644 for "blech":

| $ ls -l
| total 8
| -rw------- 1 paul users 8 May 8 20:54 bar
| -rw------- 1 paul users 2 May 8 20:54 blech
| $ less bar
| link foo
| $

Nevertheless, fsvs thinks of the second directory and the repository as
being in sync now:

| $ fsvs status -v
| ...... 8 bar
| ...... 2 blech
| .t.... dir .
| $

Any hints?

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

Messages

Show all messages in topic

fsvs revert: problems with meta-data and symlinks Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name> Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name> 2008-05-08 12:14:56 PDT
     Re: fsvs revert: problems with meta-data and symlinks pmarek P.Marek 2008-05-09 04:46:38 PDT
         Re: fsvs revert: problems with meta-data and symlinks Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name> Paul Hink <paul+ml-users dot fsvs dot tigris dot org at hink dot name> 2008-05-10 03:28:27 PDT
Messages per page: