This is an archive of the discontinued Mercurial Phabricator instance.

contrib: add a codemod script to rewrite nested with
AbandonedPublic

Authored by quark on Jul 13 2017, 9:35 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

The codemod script rewrites nested with with a single with if the code could
be put in one line (80 chars).

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Jul 13 2017, 9:35 PM
quark updated this revision to Diff 123.Jul 13 2017, 10:01 PM
quark updated this revision to Diff 124.Jul 13 2017, 10:09 PM
quark planned changes to this revision.Jul 13 2017, 10:52 PM

Could take wrong action if the outer with has blocks other than a single inner with.

quark updated this revision to Diff 127.Jul 13 2017, 11:41 PM
quark abandoned this revision.Jul 14 2017, 1:27 PM

Per discussion on D77, use commit message instead.