[Bug 3935] New: Cloning a revision with hidden revisions makes those revisions not hidden

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue May 14 09:34:43 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3935

          Priority: normal
            Bug ID: 3935
                CC: mercurial-devel at selenic.com
          Assignee: pierre-yves.david at logilab.fr
           Summary: Cloning a revision with hidden revisions makes those
                    revisions not hidden
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: angel.ezquerra at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.6
         Component: evolution
           Product: Mercurial

On Windows, with the evolution extension enabled, if you clone a repository
that has hidden revisions, those hidden revisions become not hidden on the
cloned repository.

This is a small test case that shows the problem:

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".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list