# HG changeset patch # User Dirkjan Ochtman # Date 1265551742 -3600 # Node ID eacfff116e175435c97934dce4b105462f3a23a0 # Parent c050b7e4e77885949b8619a527c5f86a71955323 strip apostrophes from an error messages diff -r c050b7e4e778 -r eacfff116e17 mercurial/localrepo.py --- a/mercurial/localrepo.py Sun Feb 07 14:53:17 2010 +0100 +++ b/mercurial/localrepo.py Sun Feb 07 15:09:02 2010 +0100 @@ -1564,7 +1564,7 @@ newbranches = list(set(localbrheads) - set(remotebrheads)) if newbranches: # new branch requires --force - branchnames = ', '.join("'%s'" % b for b in newbranches) + branchnames = ', '.join("%s" % b for b in newbranches) self.ui.warn(_("abort: push creates " "new remote branches: %s!\n") % branchnames) diff -r c050b7e4e778 -r eacfff116e17 tests/test-push-warn.out --- a/tests/test-push-warn.out Sun Feb 07 14:53:17 2010 +0100 +++ b/tests/test-push-warn.out Sun Feb 07 15:09:02 2010 +0100 @@ -84,23 +84,23 @@ % push on existing branch and new branch pushing to ../f searching for changes -abort: push creates new remote branches: 'c'! +abort: push creates new remote branches: c! (use 'hg push -f' to force) 1 pushing to ../f searching for changes -abort: push creates new remote branches: 'c'! +abort: push creates new remote branches: c! (use 'hg push -f' to force) 1 % multiple new branches pushing to ../f searching for changes -abort: push creates new remote branches: 'c', 'd'! +abort: push creates new remote branches: c, d! (use 'hg push -f' to force) 1 pushing to ../f searching for changes -abort: push creates new remote branches: 'd'! +abort: push creates new remote branches: d! (use 'hg push -f' to force) 1 % fail on multiple head push