diff hgext/convert/subversion.py @ 22201:269688a398c4

cleanup: fix some list comprehension redefinitions of existing vars In all the remaining cases the comprehension variable is used for the same thing as a previous loop variable. This will mute some pyflakes "list comprehension redefines" warnings.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 04:37:46 +0200
parents 5f2cc464e502
children 650b5b6e75ed
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Fri Aug 15 16:20:47 2014 +0200
+++ b/hgext/convert/subversion.py	Fri Aug 15 04:37:46 2014 +0200
@@ -490,10 +490,10 @@
             self._fetch_revisions(revnum, stop)
             if rev not in self.commits:
                 raise util.Abort(_('svn: revision %s not found') % revnum)
-        commit = self.commits[rev]
+        revcommit = self.commits[rev]
         # caller caches the result, so free it here to release memory
         del self.commits[rev]
-        return commit
+        return revcommit
 
     def checkrevformat(self, revstr, mapname='splicemap'):
         """ fails if revision format does not match the correct format"""