mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
push: only list non-obsolete heads in ui message
This commit is contained in:
parent
5f5b92c7c3
commit
efe7db9db1
@ -221,7 +221,8 @@ def expushdiscoverybookmarks(pushop):
|
||||
revs.remove(rev)
|
||||
if revs:
|
||||
msg = _("push would create new anonymous heads (%s)" %
|
||||
', '.join([short(r) for r in revs]))
|
||||
', '.join([short(r) for r in revs
|
||||
if not repo[r].obsolete()]))
|
||||
hint = _("use 'hg push --to NAME' to create a new remote bookmark")
|
||||
raise util.Abort(msg, hint=hint)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user