committablectx.init() currently looks up the branch from the
dirstate unless it's passed in the extras. memctx.init() has a
branch argument, but since committablectx.init() doesn't accept
it, it lets that constructor look up the branch from the dirstate
before it overwrites it, which seems awkward.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGdf2f22befdc8: context: let caller pass in branch to committablectx.__init__()
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.