This patch moves a bunch of statements under if True to reduce the noise for the
next patch.
Details
Details
- Reviewers
dlax - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/commands.py | ||
---|---|---|
1048 | Instead of this, you could use an early return in the next patch as: --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1045,6 +1045,10 @@ def branch(ui, repo, label=None, **opts) # i18n: "it" refers to an existing branch hint=_("use 'hg update' to switch to it")) scmutil.checknewlabel(repo, label, 'branch') + + if revs: + return cmdutil.changebranch(ui, repo, revs, label) + repo.dirstate.setbranch(label) ui.status(_('marked working directory as branch %s\n') % label) and drop this one. |
Instead of this, you could use an early return in the next patch as:
and drop this one.