##// END OF EJS Templates
discovery: if a push would create a new head, mention the bookmark name if any
Stephen Lee -
r21580:32601b0b default
parent child Browse files
Show More
@@ -341,6 +341,10 b' def checkheads(repo, remote, outgoing, r'
341 if branch not in ('default', None):
341 if branch not in ('default', None):
342 error = _("push creates new remote head %s "
342 error = _("push creates new remote head %s "
343 "on branch '%s'!") % (short(dhs[0]), branch)
343 "on branch '%s'!") % (short(dhs[0]), branch)
344 elif repo[dhs[0]].bookmarks():
345 error = _("push creates new remote head %s "
346 "with bookmark '%s'!") % (
347 short(dhs[0]), repo[dhs[0]].bookmarks()[0])
344 else:
348 else:
345 error = _("push creates new remote head %s!"
349 error = _("push creates new remote head %s!"
346 ) % short(dhs[0])
350 ) % short(dhs[0])
@@ -274,7 +274,7 b' diverging a remote bookmark fails'
274 $ hg push http://localhost:$HGPORT2/
274 $ hg push http://localhost:$HGPORT2/
275 pushing to http://localhost:$HGPORT2/
275 pushing to http://localhost:$HGPORT2/
276 searching for changes
276 searching for changes
277 abort: push creates new remote head c922c0139ca0!
277 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
278 (merge or see "hg help push" for details about pushing new heads)
278 (merge or see "hg help push" for details about pushing new heads)
279 [255]
279 [255]
280 $ hg -R ../a book
280 $ hg -R ../a book
@@ -290,7 +290,7 b' Unrelated marker does not alter the deci'
290 $ hg push http://localhost:$HGPORT2/
290 $ hg push http://localhost:$HGPORT2/
291 pushing to http://localhost:$HGPORT2/
291 pushing to http://localhost:$HGPORT2/
292 searching for changes
292 searching for changes
293 abort: push creates new remote head c922c0139ca0!
293 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
294 (merge or see "hg help push" for details about pushing new heads)
294 (merge or see "hg help push" for details about pushing new heads)
295 [255]
295 [255]
296 $ hg -R ../a book
296 $ hg -R ../a book
General Comments 0
You need to be logged in to leave comments. Login now