Mercurial > public > mercurial-scm > hg
comparison contrib/debugshell.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 | 46ba2cdda476 |
children | b10bbbe995eb |
comparison
equal
deleted
inserted
replaced
41758:15d3facfa40a | 41759:aaad36b88298 |
---|---|
32 | 32 |
33 IPython.embed() | 33 IPython.embed() |
34 | 34 |
35 @command('debugshell|dbsh', []) | 35 @command('debugshell|dbsh', []) |
36 def debugshell(ui, repo, **opts): | 36 def debugshell(ui, repo, **opts): |
37 bannermsg = "loaded repo : %s\n" \ | 37 bannermsg = ("loaded repo : %s\n" |
38 "using source: %s" % (repo.root, | 38 "using source: %s" % (repo.root, |
39 mercurial.__path__[0]) | 39 mercurial.__path__[0])) |
40 | 40 |
41 pdbmap = { | 41 pdbmap = { |
42 'pdb' : 'code', | 42 'pdb' : 'code', |
43 'ipdb' : 'IPython' | 43 'ipdb' : 'IPython' |
44 } | 44 } |