[PATCH] scmutil: changed revrange code not to use append

Lucas Moscovicz lmoscovicz at fb.com
Mon Feb 24 16:37:58 CST 2014


# HG changeset patch
# User Lucas Moscovicz <lmoscovicz at fb.com>
# Date 1393262852 28800
#      Mon Feb 24 09:27:32 2014 -0800
# Node ID be21c07d47d8b8ca158181b2ed491138780358d9
# Parent  dbb13949e05d8c576672ea0a49a978048c77ddf7
scmutil: changed revrange code not to use append

Removed one call to the append method

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -517,7 +517,7 @@
                 if rev in seen:
                     continue
                 seen.add(rev)
-                l.append(rev)
+                l = l + [rev]
                 continue
         except error.RepoLookupError:
             pass


More information about the Mercurial-devel mailing list