Fixed directory name having an extra dot on "hg archive -t tbz2 foo.tbz2".
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 02 Nov 2006 19:23:55 +0100
changeset 3615 1d2fdea875bc
parent 3614 fd7a018b7db7
child 3616 cf001fb04109
Fixed directory name having an extra dot on "hg archive -t tbz2 foo.tbz2". Problem reported by Rob Landley.
mercurial/archival.py
--- a/mercurial/archival.py	Thu Nov 02 15:30:45 2006 +0100
+++ b/mercurial/archival.py	Thu Nov 02 19:23:55 2006 +0100
@@ -39,7 +39,7 @@
 
     def __init__(self, dest, prefix, mtime, kind=''):
         self.prefix = tidyprefix(dest, prefix, ['.tar', '.tar.bz2', '.tar.gz',
-                                                '.tgz', 'tbz2'])
+                                                '.tgz', '.tbz2'])
         self.mtime = mtime
         if isinstance(dest, str):
             self.z = tarfile.open(dest, mode='w:'+kind)