[PATCH] hgext convert : cleaned obsolete loop for putcommit method's processes
Mert Salık
mertsalik.itu at gmail.com
Tue Apr 12 13:41:07 CDT 2011
# HG changeset patch
# User mertsalik
# Date 1302633059 -10800
# Node ID f3ea272748b6b146ab2e22db6877c6e8405ada71
# Parent 155d2e17884e2a364ded68657b0185122273bb3c
hgext convert : cleaned obsolete loop, for putcommit method's processes
pl list was created and don't used, parents is enough for this method
diff -r 155d2e17884e -r f3ea272748b6 hgext/convert/hg.py
--- a/hgext/convert/hg.py Pzt Nis 11 10:06:57 2011 +0200
+++ b/hgext/convert/hg.py Sal Nis 12 21:30:59 2011 +0300
@@ -140,11 +140,7 @@
return context.memfilectx(f, data, 'l' in mode, 'x' in mode,
copies.get(f))
- pl = []
- for p in parents:
- if p not in pl:
- pl.append(p)
- parents = pl
+
nparents = len(parents)
if self.filemapmode and nparents == 1:
m1node = self.repo.changelog.read(bin(parents[0]))[0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110412/1e7654b2/attachment.htm>
More information about the Mercurial-devel
mailing list