Show More
@@ -609,6 +609,7 b' def branch(ui, repo, label=None, **opts)' | |||||
609 | if not opts.get('force') and label in repo.branchtags(): |
|
609 | if not opts.get('force') and label in repo.branchtags(): | |
610 | if label not in [p.branch() for p in repo.parents()]: |
|
610 | if label not in [p.branch() for p in repo.parents()]: | |
611 | raise util.Abort(_('a branch of the same name already exists'), |
|
611 | raise util.Abort(_('a branch of the same name already exists'), | |
|
612 | # i18n: "it" refers to an existing branch | |||
612 | hint=_("use 'hg update' to switch to it")) |
|
613 | hint=_("use 'hg update' to switch to it")) | |
613 | repo.dirstate.setbranch(label) |
|
614 | repo.dirstate.setbranch(label) | |
614 | ui.status(_('marked working directory as branch %s\n') % label) |
|
615 | ui.status(_('marked working directory as branch %s\n') % label) |
General Comments 0
You need to be logged in to leave comments.
Login now