[Bug 4269] New: add --close-merged option to commit
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Jun 5 06:59:40 CDT 2014
http://bz.selenic.com/show_bug.cgi?id=4269
Priority: normal
Bug ID: 4269
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: add --close-merged option to commit
Severity: feature
Classification: Unclassified
OS: All
Reporter: mitchnull+hg at gmail.com
Hardware: All
Status: UNCONFIRMED
Version: unspecified
Component: Mercurial
Product: Mercurial
When working on feature branches, usually the feature branch is closed (with
--close-branch) when the final merge is done. The normal workflow is something
like this:
<work on feature-a>
hg ci -m "closing before merge" --close-branch
hg up default
hg merge feature-a
hg ci -m "merged feature-a"
or:
<work on feature-a>
hg up default
hg merge feature-a
hg ci -m "merged feature-a"
hg up feature-a
hg ci -m "closed after merge" --close-branch
the first approach requires some discipline and sometimes the closing gets
forgotten, leading to the second approach. It would allow a nicer workflow if
closing of the feature branch could be done at the time the merge commit is
done, like this:
<work on feature-a>
hg up default
hg merge feature-a
hg ci -m "merged feature-a" --close-merged
the last command would close the feature-a branch and (simultaneously) commit
the merge to the default branch.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list