Commit Graph

15 Commits

Author SHA1 Message Date
Brendan Cully
33f64bb34f Merge with crew-stable 2007-04-24 10:47:41 -07:00
Brendan Cully
c779d79c71 Work around python 2.5.1 tarfile regression 2007-04-24 10:44:13 -07:00
Matt Mackall
8ed93098b6 replace filehandle version of wwrite with wwritedata 2006-12-29 20:04:31 -06:00
Benoit Boissinot
56d04add11 archival.py: use contexts 2006-12-26 00:40:28 +01:00
Matt Mackall
296d6a7cb8 Simplify i18n imports 2006-12-14 20:25:19 -06:00
Matt Mackall
f17a4e1934 Replace demandload with new demandimport 2006-12-13 13:27:09 -06:00
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