"hg cat" works fine.
Thank you !

Simon King <[email protected]> a écrit :

On Thu, Oct 27, 2016 at 9:11 AM,  <[email protected]> wrote:
Hi,

I w'd like to know if there is a way to extract one element from Mercurial
base.
hg update -C <rev>  allows extracting all elements of the revision <rev>.


Does "hg cat" do what you want? For example:

    hg cat -r <rev> -o <outputfilename> <path/to/file>

    https://www.mercurial-scm.org/repo/hg/help/cat

Alternatively, "hg revert" can revert a file to a specific revision:

    hg revert -r <rev> <path/to/file>

    https://www.mercurial-scm.org/repo/hg/help/revert

Hope that helps,

Simon




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
Mercurial mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to