hgext/infinitepush/__init__.py
changeset 49704 a7985c822c09
parent 49306 2e726c934fcd
child 49713 6f89a1d74511
equal deleted inserted replaced
49703:b8385bbeefdc 49704:a7985c822c09
   847         if len(paths) > 1:
   847         if len(paths) > 1:
   848             msg = _(b'cannot push to multiple path with infinitepush')
   848             msg = _(b'cannot push to multiple path with infinitepush')
   849             raise error.Abort(msg)
   849             raise error.Abort(msg)
   850 
   850 
   851         path = paths[0]
   851         path = paths[0]
   852         destpath = path.pushloc or path.loc
   852         destpath = path.loc
   853         # Remote scratch bookmarks will be deleted because remotenames doesn't
   853         # Remote scratch bookmarks will be deleted because remotenames doesn't
   854         # know about them. Let's save it before push and restore after
   854         # know about them. Let's save it before push and restore after
   855         remotescratchbookmarks = _readscratchremotebookmarks(ui, repo, destpath)
   855         remotescratchbookmarks = _readscratchremotebookmarks(ui, repo, destpath)
   856         result = orig(ui, repo, *dests, **pycompat.strkwargs(opts))
   856         result = orig(ui, repo, *dests, **pycompat.strkwargs(opts))
   857         if common.isremotebooksenabled(ui):
   857         if common.isremotebooksenabled(ui):