Cloning a revision with hidden revisions makes those revisions not hidden (at least on Windows)

Angel Ezquerra angel.ezquerra at gmail.com
Tue May 14 07:00:14 CDT 2013


Hi,

I just created a local clone of a repo (in Windows, using the latest
TortoiseHg, with the evolution extension installed). The source repo
had 2 hidden revisions (created after I amended a merge revision).

The revisions which are hidden on the source repo are no longer hidden
on the clone.

This is a small test case that shows the failure:

E:\repos>hg.exe --version
Mercurial Distributed SCM (version 2.6)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
E:\repos>mkdir test
E:\repos>cd test
E:\repos\test>hg.exe init
E:\repos\test>echo foo>foo.txt
E:\repos\test>hg.exe add foo.txt
E:\repos\test>hg.exe commit -m "first revision"
E:\repos\test>echo bar>foo.txt
E:\repos\test>hg.exe commit --amend -m "amended first revision"
E:\repos\test>hg.exe clone . ..\test_clone
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
E:\repos\test>cd ..\test_clone
E:\repos\test>hg.exe log -G
@  changeset:   2:242d2167c5b9
   tag:         tip
   parent:      -1:000000000000
   user:        ezquerra
   date:        Tue May 14 13:51:10 2013 +0200
   summary:     amended first revision

o  changeset:   1:2542378113ab
|  user:        ezquerra
|  date:        Tue May 14 13:51:10 2013 +0200
|  summary:     temporary amend commit for c2b18fa958eb
|
o  changeset:   0:c2b18fa958eb
   user:        ezquerra
   date:        Tue May 14 13:51:10 2013 +0200
   summary:     first revision

Note how I did not use --hidden when calling "hg.exe log -G".

Cheers,

Angel


More information about the Mercurial-devel mailing list