# HG changeset patch # User Brendan Cully # Date 2007-04-24 17:47:41 # Node ID 6af107c742bf33f306c57c1a0b529b99af750e43 # Parent bf8319ee3428048a9ef96cc855492860f88ecceb # Parent 3f1b0c0fb4fdbe6827c6deecd1c06f67f7d2f0c1 Merge with crew-stable diff --git a/mercurial/archival.py b/mercurial/archival.py --- a/mercurial/archival.py +++ b/mercurial/archival.py @@ -43,7 +43,8 @@ class tarit: if isinstance(dest, str): self.z = tarfile.open(dest, mode='w:'+kind) else: - self.z = tarfile.open(mode='w|'+kind, fileobj=dest) + # Python 2.5-2.5.1 have a regression that requires a name arg + self.z = tarfile.open(name='', mode='w|'+kind, fileobj=dest) def addfile(self, name, mode, data): i = tarfile.TarInfo(self.prefix + name)