Mercurial > hg
changeset 44421:b715432fabba
phabricator: make `hg phabupdate` work outside of a repository
This is similar to 16312ea45a8b- we don't need a repo, but will load .hg/hgrc if
inside one.
Differential Revision: https://phab.mercurial-scm.org/D8208
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 17 Feb 2020 13:14:44 -0500 |
parents | ddcb51390891 |
children | d5d262c7e7a2 |
files | hgext/phabricator.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/phabricator.py Mon Feb 17 13:28:40 2020 -0500 +++ b/hgext/phabricator.py Mon Feb 17 13:14:44 2020 -0500 @@ -1686,6 +1686,7 @@ ], _(b'DREVSPEC [OPTIONS]'), helpcategory=command.CATEGORY_IMPORT_EXPORT, + optionalrepo=True, ) def phabupdate(ui, repo, spec, **opts): """update Differential Revision in batch @@ -1701,7 +1702,7 @@ for f in flags: actions.append({b'type': f, b'value': True}) - drevs = querydrev(repo.ui, spec) + drevs = querydrev(ui, spec) for i, drev in enumerate(drevs): if i + 1 == len(drevs) and opts.get(b'comment'): actions.append({b'type': b'comment', b'value': opts[b'comment']})