Does MQ support compressed patch files?
timeless
timeless at gmail.com
Thu Apr 7 03:33:03 CDT 2011
On Thu, Apr 7, 2011 at 5:15 AM, Peter Williams <pwil3058 at bigpond.net.au> wrote:
> Quilt (upon which MQ was originally based)
I think "after which MQ was modeled"
> supported compressed patches based on the extension to the patch name
> (e.g. patch.gz would be compressed using gzip).
> Does MQ support this functionality?
> PS Just asking NOT suggesting/requesting change.
So, beyond the case of monolithic patches to the Linux Kernel or to
Mozilla or OpenOffice, are there use cases for this feature?
I could imagine having <qimport> support .gz and perhaps a couple of
others - where support means "extracts the file leaving the expanded
human readable form".
If you're dealing w/ a DVCS that has enough files or enough large
files that you might want to compress patch to modify it, I'm fairly
confident that your DVCS history (.hg/store ?) will significantly
dwarf the size of your patches. Which means that the only reason to
use compression should be for transmission.
Note that MQ also can be manged by Hg (and I in fact sometimes have
<project>/.hg/patches/.hg/patches/.hg/patches). If the content in an
MQ is compressed on disk, then you break Hg managed MQs. I've seen
hints that GIT supports some magic filters which might let you
sometimes do interesting things w/ archives, but I'm not sure if even
it could do something particularly useful in the same vein as an Hg
managed MQ given the constraint that the files in the queue are
compressed.
More information about the Mercurial-devel
mailing list