# HG changeset patch # User timeless # Date 2016-09-20 23:47:30 # Node ID 4ddb05751b122b1efc3c59e49773b06aebb36fd9 # Parent 392edab93b8afa78728de4b4cea88025c48e8ef5 discovery: use single quotes in use warning diff --git a/mercurial/discovery.py b/mercurial/discovery.py --- a/mercurial/discovery.py +++ b/mercurial/discovery.py @@ -401,7 +401,7 @@ def checkheads(pushop): errormsg = (_("push creates new branch '%s' " "with multiple heads") % (branch)) hint = _("merge or" - " see \"hg help push\" for details about" + " see 'hg help push' for details about" " pushing new heads") elif len(newhs) > len(oldhs): # remove bookmarked or existing remote heads from the new heads list @@ -420,11 +420,11 @@ def checkheads(pushop): ) % short(dhs[0]) if unsyncedheads: hint = _("pull and merge or" - " see \"hg help push\" for details about" + " see 'hg help push' for details about" " pushing new heads") else: hint = _("merge or" - " see \"hg help push\" for details about" + " see 'hg help push' for details about" " pushing new heads") if branch is None: repo.ui.note(_("new remote heads:\n")) diff --git a/tests/test-bookmarks-pushpull.t b/tests/test-bookmarks-pushpull.t --- a/tests/test-bookmarks-pushpull.t +++ b/tests/test-bookmarks-pushpull.t @@ -427,7 +427,7 @@ diverging a remote bookmark fails pushing to http://localhost:$HGPORT2/ searching for changes abort: push creates new remote head c922c0139ca0 with bookmark 'Y'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg -R ../a book @ 1:0d2164f0ce0d @@ -443,7 +443,7 @@ Unrelated marker does not alter the deci pushing to http://localhost:$HGPORT2/ searching for changes abort: push creates new remote head c922c0139ca0 with bookmark 'Y'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg -R ../a book @ 1:0d2164f0ce0d @@ -733,7 +733,7 @@ pushing an existing but divergent bookma searching for changes remote has heads on branch 'default' that are not known locally: a2a606d9ff1b abort: push creates new remote head 54694f811df9 with bookmark 'X'! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] $ cd ../addmarks diff --git a/tests/test-obsolete-checkheads.t b/tests/test-obsolete-checkheads.t --- a/tests/test-obsolete-checkheads.t +++ b/tests/test-obsolete-checkheads.t @@ -93,7 +93,7 @@ Abort: old will still be an head because pushing to $TESTTMP/remote (glob) searching for changes abort: push creates new remote head 71e3228bffe1! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] old head is now public (public remote version) @@ -153,7 +153,7 @@ Push should abort on new head pushing to $TESTTMP/remote (glob) searching for changes abort: push creates new remote head d7d41ccbd4de! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] diff --git a/tests/test-phases-exchange.t b/tests/test-phases-exchange.t --- a/tests/test-phases-exchange.t +++ b/tests/test-phases-exchange.t @@ -920,7 +920,7 @@ appear on the remote side. pushing to ../mu searching for changes abort: push creates new remote head 435b5d83910c! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head pushing to ../mu diff --git a/tests/test-push-warn.t b/tests/test-push-warn.t --- a/tests/test-push-warn.t +++ b/tests/test-push-warn.t @@ -32,7 +32,7 @@ Specifying a revset that evaluates to nu searching for changes remote has heads on branch 'default' that are not known locally: 1c9246a22a0a abort: push creates new remote head 1e108cc5548c! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] $ hg push --debug ../a @@ -50,7 +50,7 @@ Specifying a revset that evaluates to nu new remote heads on branch 'default': 1e108cc5548c abort: push creates new remote head 1e108cc5548c! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] $ hg pull ../a @@ -66,7 +66,7 @@ Specifying a revset that evaluates to nu pushing to ../a searching for changes abort: push creates new remote head 1e108cc5548c! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg merge @@ -119,7 +119,7 @@ Specifying a revset that evaluates to nu pushing to ../c searching for changes abort: push creates new remote head 6346d66eb9f5! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push -r 2 ../c @@ -132,7 +132,7 @@ Specifying a revset that evaluates to nu pushing to ../c searching for changes abort: push creates new remote head a5dda829a167! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push -v -r 3 -r 4 ../c @@ -142,7 +142,7 @@ Specifying a revset that evaluates to nu a5dda829a167 ee8fbc7a0295 abort: push creates new remote head a5dda829a167! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push -v -f -r 3 -r 4 ../c @@ -276,7 +276,7 @@ Fail on multiple head push: pushing to ../f searching for changes abort: push creates new remote head 0b715ef6ff8f on branch 'a'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] Push replacement head on existing branches: @@ -381,7 +381,7 @@ Pushing multi headed new branch: pushing to ../f searching for changes abort: push creates new branch 'f' with multiple heads - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push --branch f --new-branch --force ../f pushing to ../f @@ -425,7 +425,7 @@ multiple new heads but also doesn't repo searching for changes remote has heads on branch 'default' that are not known locally: 534543e22c29 764f8ec07b96 afe7cc7679f5 ce4212fc8847 abort: push creates new remote head 97bd0c84d346! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] $ hg -R h up -q 0; echo x > h/b; hg -R h ci -qAmx $ hg -R i push h @@ -433,7 +433,7 @@ multiple new heads but also doesn't repo searching for changes remote has heads on branch 'default' that are not known locally: 18ddb72c4590 534543e22c29 764f8ec07b96 afe7cc7679f5 and 1 others abort: push creates new remote head 97bd0c84d346! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] $ hg -R i push h -v pushing to h @@ -442,7 +442,7 @@ multiple new heads but also doesn't repo new remote heads on branch 'default': 97bd0c84d346 abort: push creates new remote head 97bd0c84d346! - (pull and merge or see "hg help push" for details about pushing new heads) + (pull and merge or see 'hg help push' for details about pushing new heads) [255] @@ -513,7 +513,7 @@ Prepush -r should not allow you to sneak pushing to ../l searching for changes abort: push creates new remote head 451211cc22b0 on branch 'a'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ cd .. @@ -763,14 +763,14 @@ outgoing: pushing to inner searching for changes abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push inner -r4 -r5 pushing to inner searching for changes abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg in inner @@ -786,7 +786,7 @@ Test fail hook searching for changes running fail-push hook abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ cd .. diff --git a/tests/test-subrepo.t b/tests/test-subrepo.t --- a/tests/test-subrepo.t +++ b/tests/test-subrepo.t @@ -516,7 +516,7 @@ push -f pushing subrepo s to $TESTTMP/t/s searching for changes abort: push creates new remote head 12a213df6fa9! (in subrepo s) - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg push -f pushing to $TESTTMP/t (glob) @@ -952,7 +952,7 @@ Issue1977: multirepo push should fail if $ hg -R repo2 ci -m3 $ hg -q -R repo2 push abort: push creates new remote head cc505f09a8b2! (in subrepo s) - (merge or see "hg help push" for details about pushing new heads) + (merge or see 'hg help push' for details about pushing new heads) [255] $ hg -R repo update 0 files updated, 0 files merged, 0 files removed, 0 files unresolved