Mercurial > hg
comparison hgext/histedit.py @ 41759:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | 4d5f48782921 |
children | 82d9728ace95 |
comparison
equal
deleted
inserted
replaced
41758:15d3facfa40a | 41759:aaad36b88298 |
---|---|
1780 with progress, util.acceptintervention(tr): | 1780 with progress, util.acceptintervention(tr): |
1781 while state.actions: | 1781 while state.actions: |
1782 state.write(tr=tr) | 1782 state.write(tr=tr) |
1783 actobj = state.actions[0] | 1783 actobj = state.actions[0] |
1784 progress.increment(item=actobj.torule()) | 1784 progress.increment(item=actobj.torule()) |
1785 ui.debug('histedit: processing %s %s\n' % (actobj.verb,\ | 1785 ui.debug('histedit: processing %s %s\n' % (actobj.verb, |
1786 actobj.torule())) | 1786 actobj.torule())) |
1787 parentctx, replacement_ = actobj.run() | 1787 parentctx, replacement_ = actobj.run() |
1788 state.parentctxnode = parentctx.node() | 1788 state.parentctxnode = parentctx.node() |
1789 state.replacements.extend(replacement_) | 1789 state.replacements.extend(replacement_) |
1790 state.actions.pop(0) | 1790 state.actions.pop(0) |
1879 node.short(state.topmost)) | 1879 node.short(state.topmost)) |
1880 rules = ruleeditor(repo, ui, state.actions, comment) | 1880 rules = ruleeditor(repo, ui, state.actions, comment) |
1881 else: | 1881 else: |
1882 rules = _readfile(ui, rules) | 1882 rules = _readfile(ui, rules) |
1883 actions = parserules(rules, state) | 1883 actions = parserules(rules, state) |
1884 ctxs = [repo[act.node] \ | 1884 ctxs = [repo[act.node] |
1885 for act in state.actions if act.node] | 1885 for act in state.actions if act.node] |
1886 warnverifyactions(ui, repo, actions, state, ctxs) | 1886 warnverifyactions(ui, repo, actions, state, ctxs) |
1887 state.actions = actions | 1887 state.actions = actions |
1888 state.write() | 1888 state.write() |
1889 | 1889 |