--- a/hgext/convert/subversion.py Wed Apr 22 09:11:46 2009 +0200
+++ b/hgext/convert/subversion.py Wed Apr 22 01:39:47 2009 +0200
@@ -741,7 +741,7 @@
rev = self.revid(revnum)
# branch log might return entries for a parent we already have
- if (rev in self.commits or revnum < to_revnum):
+ if rev in self.commits or revnum < to_revnum:
return None, branched
parents = []
--- a/hgext/rebase.py Wed Apr 22 09:11:46 2009 +0200
+++ b/hgext/rebase.py Wed Apr 22 01:39:47 2009 +0200
@@ -77,7 +77,7 @@
raise error.ParseError(
'rebase', _('cannot use collapse with continue or abort'))
- if (srcf or basef or destf):
+ if srcf or basef or destf:
raise error.ParseError('rebase',
_('abort and continue do not allow specifying revisions'))
--- a/mercurial/cmdutil.py Wed Apr 22 09:11:46 2009 +0200
+++ b/mercurial/cmdutil.py Wed Apr 22 01:39:47 2009 +0200
@@ -359,7 +359,7 @@
# check for overwrites
exists = os.path.exists(target)
- if (not after and exists or after and state in 'mn'):
+ if not after and exists or after and state in 'mn':
if not opts['force']:
ui.warn(_('%s: not overwriting - file exists\n') %
reltarget)
--- a/tests/test-parseindex2.py Wed Apr 22 09:11:46 2009 +0200
+++ b/tests/test-parseindex2.py Wed Apr 22 01:39:47 2009 +0200
@@ -102,10 +102,10 @@
py_res_2 = py_parseindex(data_non_inlined, False)
c_res_2 = parsers.parse_index(data_non_inlined, False)
- if (py_res_1 != c_res_1) :
+ if py_res_1 != c_res_1:
print "Parse index result (with inlined data) differs!"
- if (py_res_2 != c_res_2) :
+ if py_res_2 != c_res_2:
print "Parse index result (no inlined data) differs!"
print "done"