Does hg mv a bar/ discard a's history?
Brendan Cully
brendan at kublai.com
Mon Jul 16 15:53:14 CDT 2007
On Monday, 16 July 2007 at 22:35, Matthias Luedtke wrote:
> When I create a new repository and add two files
>
> hg init foo
> cd foo/
> echo a > a
> mkdir bar
> echo b > bar/b
> hg add a bar/b
> hg commit -m 'Added two lovely files, a and bar/b'
>
> and then do a
>
> hg log a
>
> it yields a's history as expected, like
>
> changeset: 0:4b105d266186
> user: Matthias Luedtke <email at matthias-luedtke.de>
> date: Mon Jul 16 22:14:06 2007 +0200
> summary: Added two lovely files, a and bar/b
>
> However, when I move a to bar/
>
> hg mv a bar/
> hg commit -m 'Moved a to bar/'
>
> and fetch a's history at its new place with
>
> hg log bar/a
>
> it just yields
>
> changeset: 1:2128094e05a1
> tag: tip
> user: Matthias Luedtke <email at matthias-luedtke.de>
> date: Mon Jul 16 22:15:10 2007 +0200
> summary: Moved a to bar/
>
> without a's first occurence in revision 0. I had expected something like
try log -f
More information about the Mercurial
mailing list