diff -r ffb5c09ba822 -r 141f88ae5276 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Apr 19 12:04:44 2011 +0200 +++ b/mercurial/localrepo.py Tue Apr 19 15:19:54 2011 +0200 @@ -743,8 +743,8 @@ branch = self.opener("undo.branch").read() self.dirstate.setbranch(branch) except IOError: - self.ui.warn(_("Named branch could not be reset, " - "current branch still is: %s\n") + self.ui.warn(_("named branch could not be reset, " + "current branch is still: %s\n") % self.dirstate.branch()) self.invalidate() self.dirstate.invalidate()