[issue2774] convert should prune useless branch closing revisions
Patrick Mézard <bugs@mercurial.selenic.com> at mercurial.selenic.com
Patrick Mézard <bugs@mercurial.selenic.com> at mercurial.selenic.com
Wed Apr 20 20:12:26 UTC 2011
New submission from Patrick Mézard <pmezard at gmail.com>:
If a branch closing revision is no longer a children of a target branch
revision, it should be removed as well:
test branch closing revision pruning if branch is pruned
$ hg init branchpruning
$ cd branchpruning
$ hg branch foo
marked working directory as branch foo
$ echo a > a
$ hg ci -Am adda
adding a
$ hg ci --close-branch -m closefoo
$ hg up 0
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg branch default
marked working directory as branch default
$ echo b > b
$ hg ci -Am addb
adding b
$ cat > filemap <<EOF
> include b
> EOF
$ cd ..
$ hg convert --filemap branchpruning/filemap branchpruning branchpruning-hg
initializing destination branchpruning-hg repository
scanning source...
sorting...
converting...
2 adda
1 closefoo
0 addb
$ glog -R branchpruning-hg
o 1 "addb" files: b
o 0 "closefoo" files:
----------
messages: 16090
nosy: pmezard
priority: bug
status: unread
title: convert should prune useless branch closing revisions
topic: convert
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2774>
____________________________________________________
More information about the Mercurial-devel
mailing list