hg copy usage

TK Soh teekaysoh at gmail.com
Thu Nov 2 10:46:05 CST 2006


On 11/2/06, Thomas Arendsen Hein <thomas at intevation.de> wrote:
> 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.

That applies to changes to SOURCE in a remote repo. What about changes
to SOURCE within the local repo after the commit? Does the changes in
SOURCE propagate to TARGET?


More information about the Mercurial mailing list