Patchwork [4,of,5,stable] py3: use `pycompat.ziplist()`

login
register
mail settings
Submitter Manuel Jacob
Date June 16, 2020, 1:50 a.m.
Message ID <f86ca8753fb2a1c15c8a.1592272229@tmp>
Download mbox | patch
Permalink /patch/46511/
State Accepted
Headers show

Comments

Manuel Jacob - June 16, 2020, 1:50 a.m.
# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1592185082 -7200
#      Mon Jun 15 03:38:02 2020 +0200
# Branch stable
# Node ID f86ca8753fb2a1c15c8abda7991181e09ad36071
# Parent  23c7b0389ff76d99d4fb245092720b7229b66544
# EXP-Topic convert-svn
py3: use `pycompat.ziplist()`

Patch

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -597,7 +597,7 @@ 
             self.removed = set()
 
         files.sort()
-        files = zip(files, [rev] * len(files))
+        files = pycompat.ziplist(files, [rev] * len(files))
         return (files, copies)
 
     def getchanges(self, rev, full):