Mercurial > public > mercurial-scm > hg-stable
diff tests/test-push-warn.t @ 14525:826a13720fbc
prepush: print short hash of first new head in abort message
and don't mention the branch if it's the default branch.
OLD:
$ hg push ../a
pushing to ../a
searching for changes
abort: push creates new remote heads on branch 'default'!
(you should pull and merge or use push -f to force)
NEW:
$ hg push ../a
pushing to ../a
searching for changes
abort: push creates new remote head 1e108cc5548c!
(you should pull and merge or use push -f to force)
This helps to identify which local head is causing troubles.
See also change 91cb08a9e7fb.
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 03 Jun 2011 12:16:17 +0200 |
parents | cb98fed52495 |
children | 4276e3202585 |
line wrap: on
line diff
--- a/tests/test-push-warn.t Fri Jun 03 11:26:43 2011 +0200 +++ b/tests/test-push-warn.t Fri Jun 03 12:16:17 2011 +0200 @@ -25,7 +25,7 @@ $ hg push ../a pushing to ../a searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head 1e108cc5548c! (you should pull and merge or use push -f to force) [255] @@ -39,7 +39,7 @@ 2 total queries new remote heads on branch 'default' new remote head 1e108cc5548c - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head 1e108cc5548c! (you should pull and merge or use push -f to force) [255] @@ -55,7 +55,7 @@ $ hg push ../a pushing to ../a searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head 1e108cc5548c! (did you forget to merge? use push -f to force) [255] @@ -108,7 +108,7 @@ $ hg push ../c pushing to ../c searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head 6346d66eb9f5! (did you forget to merge? use push -f to force) [255] @@ -120,14 +120,14 @@ $ hg push -r 3 ../c pushing to ../c searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head a5dda829a167! (did you forget to merge? use push -f to force) [255] $ hg push -r 3 -r 4 ../c pushing to ../c searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head a5dda829a167! (did you forget to merge? use push -f to force) [255] @@ -256,7 +256,7 @@ $ hg push -r 4 -r 7 ../f pushing to ../f searching for changes - abort: push creates new remote heads on branch 'a'! + abort: push creates new remote head 0b715ef6ff8f on branch 'a'! (did you forget to merge? use push -f to force) [255] @@ -379,7 +379,7 @@ $ hg -R i push h pushing to h searching for changes - abort: push creates new remote heads on branch 'default'! + abort: push creates new remote head 97bd0c84d346! (you should pull and merge or use push -f to force) [255] @@ -449,7 +449,7 @@ $ hg push ../l -b b pushing to ../l searching for changes - abort: push creates new remote heads on branch 'a'! + abort: push creates new remote head e7e31d71180f on branch 'a'! (did you forget to merge? use push -f to force) [255] @@ -696,14 +696,14 @@ $ hg push inner pushing to inner searching for changes - abort: push creates new remote heads on branch 'A'! + abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! (did you forget to merge? use push -f to force) [255] $ hg push inner -r4 -r5 pushing to inner searching for changes - abort: push creates new remote heads on branch 'A'! + abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! (did you forget to merge? use push -f to force) [255]