( )⚙ D6499 phabricator: make `hg debugcallconduit` work outside a hg repo

This is an archive of the discontinued Mercurial Phabricator instance.

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

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

Details

Summary

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
repo/.hg/hgrc.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

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.