This is an archive of the discontinued Mercurial Phabricator instance.

phabricator: make `hg debugcallconduit` work outside a hg repo

Authored by pulkit on Jun 8 2019, 12:07 PM.



I am trying to write some automations around phabricator and having
debugcallconduit work outside a hg repo will be nice!

Marking command as optionalrepo instead of norepo because we might to load

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Jun 8 2019, 12:07 PM
yuja added a subscriber: yuja.Jun 8 2019, 9:51 PM

-@vcrcommand(b'debugcallconduit', [], _(b'METHOD'))
-def debugcallconduit(ui, repo, name):
+@vcrcommand(b'debugcallconduit', [], _(b'METHOD'), norepo=True)
+def debugcallconduit(ui, name):

Maybe optionalrepo to load repo/.hg/hgrc?

pulkit edited the summary of this revision. (Show Details)Jun 9 2019, 7:56 PM
pulkit updated this revision to Diff 15410.
This revision was automatically updated to reflect the committed changes.