Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 46930:0afe96e374a7
outgoing: pass subrepo path using function argument instead of abssource hack
This is clearer, remove the needs for the `repo._subtoppath` hack and will make
our live easier when making `outgoing` accept multiple destinations.
Differential Revision: https://phab.mercurial-scm.org/D10390
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 15 Apr 2021 09:23:28 +0200 |
parents | efadec3ea8e2 |
children | d4e4ccb75f99 |
comparison
equal
deleted
inserted
replaced
46929:5a59a0ed0a37 | 46930:0afe96e374a7 |
---|---|
4983 ui.pager(b'outgoing') | 4983 ui.pager(b'outgoing') |
4984 return bookmarks.outgoing(ui, repo, other) | 4984 return bookmarks.outgoing(ui, repo, other) |
4985 finally: | 4985 finally: |
4986 other.close() | 4986 other.close() |
4987 | 4987 |
4988 repo._subtoppath = path.pushloc or path.loc | 4988 return hg.outgoing(ui, repo, dest, opts) |
4989 try: | |
4990 return hg.outgoing(ui, repo, dest, opts) | |
4991 finally: | |
4992 del repo._subtoppath | |
4993 | 4989 |
4994 | 4990 |
4995 @command( | 4991 @command( |
4996 b'parents', | 4992 b'parents', |
4997 [ | 4993 [ |