This patch shows that we can close a branch even from a cset which is not
a branch head. It was supposed to abort this operation.
Next patch will be fixing the issue.
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG258821f2d465: branch: add tests which shows branch can be closed from a non-branchhead cset
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
tests/test-branches.t | ||
---|---|---|
961 | I created this patch assuming that hg should not allow to create a branch closing commit from a cset which is not a branch head. Let me know if I am missing something here. |
Comment Actions
Queueing this, many thanks!
tests/test-branches.t | ||
---|---|---|
961 | I think that the assumption is correct. hg help commit says --close-branch mark a branch head as closed. So it should definitely be a head. |
I created this patch assuming that hg should not allow to create a branch closing commit from a cset which is not a branch head. Let me know if I am missing something here.