changeset 17990:8216eb592dcd

branch: add missing repo argument to checknewlabel scmutil.checknewlabel takes a repo object as its first argument. When the call to this function was added in e689b0d91546, the first argument was mistakenly set to 'None'.
author Tim Henigan <tim.henigan@gmail.com>
date Thu, 29 Nov 2012 08:49:21 -0500
parents e8c9b13c7799
children d605a82cf189
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Nov 29 11:44:22 2012 -0600
+++ b/mercurial/commands.py	Thu Nov 29 08:49:21 2012 -0500
@@ -928,7 +928,7 @@
                                        ' exists'),
                                      # i18n: "it" refers to an existing branch
                                      hint=_("use 'hg update' to switch to it"))
-            scmutil.checknewlabel(None, label, 'branch')
+            scmutil.checknewlabel(repo, label, 'branch')
             repo.dirstate.setbranch(label)
             ui.status(_('marked working directory as branch %s\n') % label)
             ui.status(_('(branches are permanent and global, '