Hello Simon!

> I was wandering what the right thing to do is in the following use case:
>
> I am versioning / and I commit several revisions. Let's say HEAD is now
> 42. Then I want to go back to rev 23 and I want to have exactly the
> state that my filesystem had, when I committed rev 23. After looking at
> the situation and testing stuff, I want to go back to HEAD, ignoring all
> changes that my testing might have caused to rev 23.
...
> The last update can cause problems, when files were changed by my
> activities. I then do an fsvs revert FILE, but there can be a lot of
> changed files.
>  From a former mail on this list, I understood that revert is the
> correct way to force an update on a locally modified file.
That's correct.

> So once
> recursive revert is implemented, could I then use
>
> fsvs revert /
>
> instead of the last fsvs update? Or this there an option I could use to
> update, which is ignores local modifications?
You could go into revert.c, to the lines:
    /** \todo Conflict handling */
    STOPIF_CODE_ERR( sts->entry_status & FS_CHANGED, EBUSY,
          "The entry %s has changed locally", fn);
and change that into a warning.

> Do you have any estimation
> when recursive revert will be implemented?
Well, I'd like to make that happen in the next few weeks - but if you beat
me to it, I'd be happy ;-)

> I looked into your source code to see if I could code the recursive
> revert myself, but my C skills are very limited...
You could try, and post a patch. If it doesn't work, you'll see it or I'll
tell you; at least I'd have some start point. Otherwise you'll have to
wait a bit until I'm finished with that.
(Now that I know that someone needs that, I'll priotize that. So it's
possibly that I have a first version by the end of next week, but that's
no promise. Please tell me whether you're starting now, so we don't do
double work.)


> Fsvs is a great tool,
> I appreciate the time and work you invest in this tool.
Thank you!


Regards,

Phil

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to