Does MQ support compressed patch files?

Martin Geisler mg at aragost.com
Thu Apr 7 03:00:08 CDT 2011


Peter Williams <pwil3058 at bigpond.net.au> writes:

> Quilt (upon which MQ was originally based) 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?
>
> Thanks
> Peter
> PS Just asking NOT suggesting/requesting change.
> PPS I couldn't see such support in the code but am asking just in case
> it's there and I missed it.

Yeah, there is no code for this and a small test shows that it does not
work:

  $ hg qnew test
  $ echo a > a
  $ hg add a
  $ hg qrefresh
  $ hg qpop
  popping test
  patch queue now empty
  $ gzip .hg/patches/test
  $ ll .hg/patches
  total 12K
  -rw-r--r-- 1 mg mg   5 Apr  7 09:55 series
  -rw-r--r-- 1 mg mg  46 Apr  7 09:55 status
  -rw-r--r-- 1 mg mg 153 Apr  7 09:55 test.gz
  $ echo 'test.gz' > .hg/patches/series
  $ hg qseries
  test.gz
  $ hg qpush
  applying test.gz
  patch test.gz is empty
  now at: test.gz

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://mercurial.aragost.com/kick-start/


More information about the Mercurial-devel mailing list