# HG changeset patch # User Dirkjan Ochtman # Date 2010-02-07 14:09:02 # Node ID eacfff116e175435c97934dce4b105462f3a23a0 # Parent c050b7e4e77885949b8619a527c5f86a71955323 strip apostrophes from an error messages diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1564,7 +1564,7 @@ class localrepository(repo.repository): 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 --git a/tests/test-push-warn.out b/tests/test-push-warn.out --- a/tests/test-push-warn.out +++ b/tests/test-push-warn.out @@ -84,23 +84,23 @@ 0 % 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