##// 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 341 if branch not in ('default', None):
342 342 error = _("push creates new remote head %s "
343 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 348 else:
345 349 error = _("push creates new remote head %s!"
346 350 ) % short(dhs[0])
@@ -274,7 +274,7 b' diverging a remote bookmark fails'
274 274 $ hg push http://localhost:$HGPORT2/
275 275 pushing to http://localhost:$HGPORT2/
276 276 searching for changes
277 abort: push creates new remote head c922c0139ca0!
277 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
278 278 (merge or see "hg help push" for details about pushing new heads)
279 279 [255]
280 280 $ hg -R ../a book
@@ -290,7 +290,7 b' Unrelated marker does not alter the deci'
290 290 $ hg push http://localhost:$HGPORT2/
291 291 pushing to http://localhost:$HGPORT2/
292 292 searching for changes
293 abort: push creates new remote head c922c0139ca0!
293 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
294 294 (merge or see "hg help push" for details about pushing new heads)
295 295 [255]
296 296 $ hg -R ../a book
General Comments 0
You need to be logged in to leave comments. Login now