equal
deleted
inserted
replaced
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): |