Patchwork D8208: phabricator: make `hg phabupdate` work outside of a repository

login
register
mail settings
Submitter phabricator
Date March 4, 2020, 1:17 p.m.
Message ID <936d8f8469c191a93ec5a1e4c548037f@localhost.localdomain>
Download mbox | patch
Permalink /patch/45449/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2020, 1:17 p.m.
Closed by commit rHG2513f0f70a26: phabricator: make `hg phabupdate` work outside of a repository (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8208?vs=20424&id=20444

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8208/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8208

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: Kwan, mercurial-devel

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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']})