Page MenuHomePhabricator

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

Authored by pulkit on Sat, Jun 8, 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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Sat, Jun 8, 12:07 PM
yuja added a subscriber: yuja.Sat, Jun 8, 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)Sun, Jun 9, 7:56 PM
pulkit updated this revision to Diff 15410.
This revision was automatically updated to reflect the committed changes.