Commit Graph

9 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
d5d0b90730 Fixed directory name having an extra dot on "hg archive -t tbz2 foo.tbz2".
Problem reported by Rob Landley.
2006-11-02 19:23:55 +01:00
Alexis S. L. Carvalho
219803f060 Fix some bugs introduced during the manifest refactoring 2006-08-12 08:53:23 -03:00
Matt Mackall
44b96c96eb Change remaining users of manifest flags 2006-08-11 10:57:42 -05:00
Matt Mackall
4e6cb39019 Start using manifestflags methods 2006-07-16 03:14:17 -05:00
Vadim Gelfer
b2be07e448 use commit time as mtime for file archives.
now output from two run of "hg archive -t zip" is same.
2006-06-21 15:31:23 -07:00
Thomas Arendsen Hein
6e9c33e5eb Pass filename to decoder for 'hg archive' (fixes issue267)
Despite writing to a file descriptor, the check in the
[decode] section needs a filename.
localrepo.wwrite() still writes to the file descriptor.
2006-05-31 19:41:01 +02:00
Thomas Arendsen Hein
7afa65a340 Combine catching exceptions added in ef4567e4fb9c in one except statement. 2006-04-30 22:46:54 +02:00
Colin McMillen
d99c64cd65 Proper check to see if zip dest needs to be wrapped in tellable
From hgweb, calling archival.zipit fails with the error message
"Illegal seek". This happens because sys.stdout.tell() throws an
exception:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mercurial/archival.py", line 99, in addfile
    self.z.writestr(i, data)
  File "/usr/lib/python2.4/zipfile.py", line 468, in writestr
    zinfo.header_offset = self.fp.tell()    # Start of header bytes

Checking whether hasattr(dest, 'tell') is insufficient, because
sys.stdout has a tell() method; you just can't call it.

This patch instead determines whether a fileobj is tellable by trying
to tell(), wrapping the fileobj if an exception is generated.
2006-04-30 22:43:41 +02:00
Vadim Gelfer
dfa56ff468 add "archive" command, like "cvs export" only better.
most code in mercurial/archival.py module, for sharing with hgweb.
2006-04-21 15:27:57 -07:00