merge with stable

This commit is contained in:
Matt Mackall 2010-08-19 17:29:13 -05:00
commit 73968a1cf2

View File

@ -442,9 +442,12 @@ def push(oldpush, ui, repo, dest=None, **opts):
if b in repo._bookmarks:
ui.status(_("exporting bookmark %s\n") % b)
new = repo[b].hex()
else:
elif b in rb:
ui.status(_("deleting remote bookmark %s\n") % b)
new = '' # delete
else:
ui.warn(_('bookmark %s does not exist on the local or remote repository!\n') % b)
return 2
old = rb.get(b, '')
r = other.pushkey('bookmarks', b, old, new)
if not r: