[Bug 3762] New: rollback (sometimes) keeps new branch
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Jan 10 04:48:23 CST 2013
http://bz.selenic.com/show_bug.cgi?id=3762
Priority: normal
Bug ID: 3762
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: rollback (sometimes) keeps new branch
Severity: bug
Classification: Unclassified
OS: Windows
Reporter: hg at trashemail.de
Hardware: PC
Status: UNCONFIRMED
Version: 2.4.2
Component: Mercurial
Product: Mercurial
Inconsistent/unexpected result, when creating a new branch "newBranchName"
followed by a commit and rollback.
Steps to reproduce
Batchfile "rollback_ok.bat"
rd /s /q branchbug
md branchbug
cd branchbug
hg init
echo a >a.txt
hg commit -A -u tester -m TEST
hg branch test
hg rollback
hg branch
hg commit -A -u tester -m TEST
hg branch
pause
Batchfile "rollback_fail.bat"
rd /s /q branchbug
md branchbug
cd branchbug
hg init
echo a >a.txt
hg commit -A -u tester -m TEST
hg branch test
hg commit -A -u tester -m TEST
hg rollback
hg branch
hg commit -A -u tester -m TEST
hg branch
pause
I would have expected that the rollback will undo the branch command as well,
but it seems this is not always the case.
I found an old ticket: http://bz.selenic.com/show_bug.cgi?id=902#c7 where this
case is described. Although the behaviour described there was obviously
changed, because my test case "rollback_ok.bat" works.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list