( )⚙ D1038 tweakdefaults: add capability to skip some commands in cleanupnodes wrapper

This is an archive of the discontinued Mercurial Phabricator instance.

tweakdefaults: add capability to skip some commands in cleanupnodes wrapper
ClosedPublic

Authored by pulkit on Oct 12 2017, 5:59 PM.
Tags
None
Subscribers

Details

Summary

The goal to show hash changes is to add support for json output printing full
hashes to increase support for automation and Nuclide. To achieve the goal in
best and clean way, we must use formatter. So support of using formatter and
having json output for commands will be added to commands. Since for those
commands we don't need this wrapper, lets add a functionality to skip the
wrapper for some commands.

We need to update the set introduced in this patch for each command we add
support to show hash changes.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Oct 12 2017, 5:59 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 12 2017, 5:59 PM
quark accepted this revision.Oct 16 2017, 6:26 PM
quark added a subscriber: quark.
quark added inline comments.
hgext3rd/tweakdefaults.py
756

I have changed args[0] to operation.

This revision is now accepted and ready to land.Oct 16 2017, 6:26 PM
This revision was automatically updated to reflect the committed changes.