On Thu, 26 May 2011 13:03:34 +0400, Konstantin Khomoutov
<flatw...@users.sourceforge.net> wrote:
>Read carefully what "fossil help update" prints.

Thanks, but it's just the same information from the wiki.

Anyway, after going the list of commands, I seem to have found how to
have Fossil check out a given revision of a file:
=====================
1. First, find the list of revision numbers for the file:

C:\>fossil.exe finfo "myfile.txt"

History of myfile.txt
2011-05-26 [6ae687415f] some comment (user: Me, artifact:
[a16a331cb0])
2011-05-26 [7091e0aaf4] some comment (user: Me, artifact:
[750ae972b4])

The revision number is the alphanumeric data after the date, and
revisions are in descending order (most recent on top).

2. To check out the first revision of the file:

C:\>fossil.exe revert -r 7091e0aaf4 "myfile.txt"
REVERTED: myfile.txt
=====================

In case I edited the work version to try something, and simply want to
discard the changes and go back to the latest committed version:
=====================
C:\>fossil.exe revert -r 7091e0aaf4 "myfile.txt"
REVERTED: myfile.txt
"fossil undo" is available to undo changes to the working checkout.
=====================

Am I right in understanding that the sentence above about "undo" means
that...
1. The work version was replaced by the committed version
2. But in case I'd like to go back to the work version that was just
replaced, I can do this with "undo"?

Thank you.

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to