hg copy usage
Thomas Arendsen Hein
thomas at intevation.de
Thu Nov 2 05:51:02 CST 2006
* TK Soh <teekaysoh at gmail.com> [20061030 20:51]:
> I am a little unclear about the copy command. Anyone kind enough help
> clarify it's usage? Thanks.
hg copy SOURCE TARGET
echo "this file is derived from SOURCE" >> TARGET
hg commit -m "Added TARGET, which is SOURCE with small modifications."
hg pull from-a-repo-which-has-modifications-to-SOURCE
hg merge
This will apply the modifications from upstream to SOURCE and to
TARGET.
hg log --verbose --copies (or -vC)
will show that TARGET is a copy of SOURCE.
hg log --follow TARGET
will show the history of SOURCE, too.
All this assumes a recent (post 0.9.1) Mercurial.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list