Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Using fsvs as UID 0

fsvs
Discussion topic

Back to topic list

Re: Using fsvs as UID 0

Author pmarek
Full name P.Marek
Date 2007-03-07 11:22:24 PST
Message On Wednesday 07 March 2007 15:44 Benjamin M. wrote:
> Ph. Marek wrote, On 07/03/07 02:50:
> > Don't you have r703?
> No more problem with diff or run-tests 023 with FSVS 1.1.0.
That's good.

> Now... I have tried the sync-repos command...
...
> $ fsvs info
>
>
> An error occurred: No such file or directory (2)
> in info__work: Couldn't find a working copy with matching base.
> FSVS (licensed under the GPLv2), (C) by Ph. Marek; version trunk:677
That's ok. It could be a bit more user-friendly, though.

> $ fsvs urls file:///tmp/fsvs-test-repos/
> $ fsvs info
> No tree information available. Did you commit?
> $ fsvs sync-repos
> NmC. 0
> .mC. 0 .
> Sync-repos to revision 1.
> $ fsvs info
> .... 4096 .
> Type: directory
> URL: file:///tmp/fsvs-test-repos/
> Status: 0x0 (unmodified)
> Flags: 0x0 (none)
> Dev: 64772
> Inode: 16387
> Mode: 040775
> UID/GID: 700 (webmaster)/700 (webmaster)
> MTime: Wed Mar 7 09:16:52 2007
> CTime: Wed Mar 7 09:16:52 2007
> WAA-Path:
> /tmp/fsvs-test-waa/5​a/b8/caa10538a87aff4​9fe6f19370d6c/
> Revision: 1
> Size: 4096
> $ fsvs st
> <returns nothing>
There you're right. It should possibly return the file.

> $ fsvs remote-status
> .m.. 4096 .
> Remote-status against revision 1.
>
> $ cat test.txt
> Hello world!
> $ svn cat file:///tmp/fsvs-tes​t-repos/test.txt
> Hello World!
>
> I would expect test.txt to be reported as Changed... am I missing
> something?
No. AFAIK (without looking) sync-repos has a small bug, in that files *with
the same size* are not reported as changed, because their mtime is read after
syncing. (See mtime, ctime stamps above).

Bug:
   $ fsvs st -C -C
should report it (doing a checksum), and
   $ fsvs commit -C -C
too.


So, BTW ... why does your fsvs give no MD5 of that file?
  $ fsvs info big_file
  .... 588888 ./big_file
        Type: file
        URL: file:///tmp/ram/fsvs​-test-1000/repos/tru​nk/big_file
        Status: 0x0 (unmodified)
        Flags: 0x0 (none)
        Dev: 20
        Inode: 16306
        Mode: 0100644
        UID/GID: 1000 (flip)/1000 (flip)
        MTime: Wed Mar 7 19:57:53 2007
        CTime: Wed Mar 7 19:57:53 2007
        WAA-Path: /tmp/ram/waa/be/9b/c​359b8d47483ea64ef5fa​a12ac2d/
        Revision: 4
        Repos-MD5: 9f588ff5001de3467365​2c4a767575e4
        Size: 588888

  $ echo 'Hello world!' | md5sum
  59ca0efa9f5633cb0371​bbc0355478d8 -
Could you please check whether fsvs really prints no MD5 for you?
Why not?
I'd like to know whether the MD5 is locally correct or not.


And now to your point - should fsvs on a sync-repos *always* check the local
files for identity? (Doing a MD5?) Would be slow. Should it do that always on
status? Probably not.
But you're right, in that it could see the differing mtime, and say "possibly
changed" - as it does with other files.


How's r726 for you?


Regards,

Phil


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

« Previous message in topic | 15 of 30 | Next message in topic »

Messages

Show all messages in topic

                                                                                                 Re: Using fsvs as UID 0 benjaminm Benjamin M. 2007-03-10 12:02:26 PST
                                                                                                     Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-11 10:38:54 PDT
                                                                                                         Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-12 05:01:26 PDT
                                                                             Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-09 10:43:52 PST
     Re: Using fsvs as UID 0 pmarek P.Marek 2007-03-16 10:48:00 PDT
Page: of 2 « Previous | Next »
Messages per page: