In following scenario $ hg branch new-branch # proceed to edit and add some file $ hg update --clean # lets nuke edits, i'll run hg add after result is abort: branch new-branch not found Expected result: Edited files are reverted and added files changed to untracked Workaround as for now is $ hg branch --clean $ hg update --clean $ hg branch new-branch
Hello Taras, I'm interested in working on this bug. Can you please help me in getting started?! Regards, Wasim www.thabraze.me
Piotr Listkiewicz is already working on a patch: https://www.mercurial-scm.org/pipermail/mercurial-devel/2016-February/079944.html
Bug was set to IN_PROGRESS for 14 days, moving back to confirmed
Fixed by https://selenic.com/repo/hg/rev/1c7167009936 liscju <piotr.listkiewicz@gmail.com> update: fix bare --clean to work on new branch (issue5003) (BC) Before this commit bare update --clean on newly created branch updates to the parent commit, even if there are later commits on the parent commit's branch. Update to the latest head on the parent commit's branch instead. This seems reasonable as clean should discard uncommited changes, branch is one of them. (please test the fix)
Bug was set to TESTING for 7 days, resolving