Commits

Marcin Kuzminski committed e2b74cf

cleaner code is always better

Comments (0)

Files changed (1)

vcs/backends/hg/repository.py

             revisions = scmutil.revrange(self._repo, filter_)
         else:
             revisions = self.revisions
-        revs = reversed(revisions[start_pos:end_pos]) if reverse else \
-                revisions[start_pos:end_pos]
+
+        revs = revisions[start_pos:end_pos]
+        if reverse:
+            revs = reversed(revs)
 
         return CollectionGenerator(self, revs)