[Bug 4156] New: after clone, repo has two copies of histedit-ed repo
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Wed Jan 29 16:30:55 CST 2014
http://bz.selenic.com/show_bug.cgi?id=4156
Priority: normal
Bug ID: 4156
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: after clone, repo has two copies of histedit-ed repo
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: g.gherdovich at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 2.8.2
Component: histedit
Product: Mercurial
preparing a repo
{{{
$ mkdir r
$ cd r/
/r$ hg init
}}}
making a few commits
{{{
/r$ echo foo >> foo ; hg add foo ; hg commit -m foo
/r$ echo foo >> foo ; hg commit -m foo
/r$ echo foo >> foo ; hg commit -m foo
/r$ hg log --graph --template '{rev}\t{desc}'
@ 2 foo
|
o 1 foo
|
o 0 foo
}}}
use histedit to change all commit messages
{{{
/r$ hg histedit 0
/r$ cat .hg/histedit-last-edit.txt
m bf02f367897e 0 foo
m 3cd0d16671e3 1 foo
m 359cdea09545 2 foo
}}}
looks like we successfully changed the commit messages
{{{
/r$ hg log --graph --template '{rev}\t{desc}'
@ 5 bar
|
o 4 bar
|
o 3 bar
}}}
then clone the repo r into r1.
r1 contains two copies, i.e. both histories before and after the rewrite.
{{{
/r$ cd ..
$ hg clone r r1
$ cd r1/
/r1$ hg log --graph --template '{rev}\t{desc}'
@ 5 bar
|
o 4 bar
|
o 3 bar
o 2 foo
|
o 1 foo
|
o 0 foo
}}}
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list