[issue240] mq: qpush fails on Solaris

Danek Duvall mercurial-bugs at selenic.com
Thu May 11 17:52:13 CDT 2006


New submission from Danek Duvall <danek.duvall at sun.com>:

When run on Solaris, "hg qpush" fails with the following error:

patch: Invalid options.
patch: Usage:   patch [-blNR] [-c|-e|-n] [-d dir] [-D define] [-i patchfile]\
              [-o outfile] [-p num] [-r rejectfile] [file]
patch failed, rejects left in working dir

This is because "patch" is not GNU patch, and apply() runs

    patch -p1 --no-backup-if-mismatch

directly.  The workaround is to put a "patch" executable in your path before
/usr/bin which calls gpatch, but it would be best to use gpatch directly if it
can be found.  It would be nice to use the Solaris patch, but that might not
be feasible -- it seems to choke on some input that GNU patch accepts just fine,
though I can't characterize that input.

----------
messages: 1236
nosy: dduvall
priority: bug
status: unread
title: mq: qpush fails on Solaris
topic: mq

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue240>
____________________________________________________



More information about the Mercurial mailing list