Manipulating files from different changesets

Brendan Cully brendan at kublai.com
Sun May 20 23:53:40 UTC 2007


On Sunday, 20 May 2007 at 18:12, Imad A. Ferzli wrote:
> I have a question regarding viewing and manipulating files in different 
> changesets of a repository. A specific example would be something like this:
> 
> The current head/tip of the repository looks like:
> 
> changeset:  5:53a46fa3a296
> branch:    My_Branch 
> tag:          tip
> user:        ferzli
> date:        Sun May 20 16:29:53 2007 -0400
> summary:     Common trunk
> 
> A previous changeset is:
> 
> changeset:   1:b4e0de952359
> user:        ferzli
> date:        Fri May 18 16:56:53 2007 -0400
> summary:     Added figs to rep
> 
> I would like to copy a file foo.txt from the earlier changest b4e0de952359
> to the current working directory withouth the rest of the files from the 
> earlier changest.
> What's the way to do this?

hg revert -r 1 foo.txt



More information about the Mercurial mailing list