Mercurial > hg-stable
comparison hgext/convert/subversion.py @ 41768: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 | 36ee0d6d64c5 |
children | c004340dc687 |
comparison
equal
deleted
inserted
replaced
41767:15d3facfa40a | 41768:aaad36b88298 |
---|---|
788 childpath = childpath.replace(oroot, nroot) | 788 childpath = childpath.replace(oroot, nroot) |
789 childpath = self.getrelpath("/" + childpath, pmodule) | 789 childpath = self.getrelpath("/" + childpath, pmodule) |
790 if childpath: | 790 if childpath: |
791 removed.add(self.recode(childpath)) | 791 removed.add(self.recode(childpath)) |
792 else: | 792 else: |
793 self.ui.debug('unknown path in revision %d: %s\n' % \ | 793 self.ui.debug('unknown path in revision %d: %s\n' % |
794 (revnum, path)) | 794 (revnum, path)) |
795 elif kind == svn.core.svn_node_dir: | 795 elif kind == svn.core.svn_node_dir: |
796 if ent.action == 'M': | 796 if ent.action == 'M': |
797 # If the directory just had a prop change, | 797 # If the directory just had a prop change, |
798 # then we shouldn't need to look for its children. | 798 # then we shouldn't need to look for its children. |