# HG changeset patch # User Dirkjan Ochtman # Date 1204217464 -3600 # Node ID d500aeb8092ee7d4149dc27bff287b5d3d80c2ff # Parent d98ef03893e6f6b6b719888f545a065ae6221825 warning on push should mention heads, not branches This makes the concept easier to relate to similar messages given on pull, and allows for a distinction between heads and (named) branches. diff -r d98ef03893e6 -r d500aeb8092e mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Feb 28 00:07:38 2008 +0100 +++ b/mercurial/localrepo.py Thu Feb 28 17:51:04 2008 +0100 @@ -1527,7 +1527,7 @@ warn = 1 if warn: - self.ui.warn(_("abort: push creates new remote branches!\n")) + self.ui.warn(_("abort: push creates new remote heads!\n")) self.ui.status(_("(did you forget to merge?" " use push -f to force)\n")) return None, 0 diff -r d98ef03893e6 -r d500aeb8092e tests/test-push-warn.out --- a/tests/test-push-warn.out Thu Feb 28 00:07:38 2008 +0100 +++ b/tests/test-push-warn.out Thu Feb 28 17:51:04 2008 +0100 @@ -1,7 +1,7 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved pushing to ../a searching for changes -abort: push creates new remote branches! +abort: push creates new remote heads! (did you forget to merge? use push -f to force) pulling from ../a searching for changes @@ -12,7 +12,7 @@ (run 'hg heads' to see heads, 'hg merge' to merge) pushing to ../a searching for changes -abort: push creates new remote branches! +abort: push creates new remote heads! (did you forget to merge? use push -f to force) 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) @@ -31,7 +31,7 @@ (branch merge, don't forget to commit) pushing to ../c searching for changes -abort: push creates new remote branches! +abort: push creates new remote heads! (did you forget to merge? use push -f to force) 1 pushing to ../c @@ -40,12 +40,12 @@ 0 pushing to ../c searching for changes -abort: push creates new remote branches! +abort: push creates new remote heads! (did you forget to merge? use push -f to force) 1 pushing to ../c searching for changes -abort: push creates new remote branches! +abort: push creates new remote heads! (did you forget to merge? use push -f to force) 1 pushing to ../c