imerge: tarfile.extractall is only available in python2.5
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 02 Aug 2007 14:04:00 +0200
changeset 5055 56d48aed1f69
parent 5054 ec70fd08e16c
child 5056 34a54cc5df1b
imerge: tarfile.extractall is only available in python2.5
hgext/imerge.py
--- a/hgext/imerge.py	Wed Aug 01 23:59:19 2007 -0700
+++ b/hgext/imerge.py	Thu Aug 02 14:04:00 2007 +0200
@@ -45,7 +45,8 @@
         if self.im.repo.dirstate.parents()[0] != p1:
             hg.clean(self.im.repo, self.im.parents[0].node())
         self.im.start(p2)
-        tf.extractall(self.im.repo.root)
+        for tarinfo in tf:
+            tf.extract(tarinfo, self.im.repo.root)
         self.im.load()
 
 class Imerge(object):