patch on freebsd

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Aug 15 13:12:02 CDT 2007


On 2007-08-14 21:33, Brad Schick <schickb at gmail.com> wrote:
> I have mercurial 0.9.4 installed in a local account on FreeBSD
> 6.2-RELEASE. So far it works except for patch. Anyone know the trick for
> making hg happy with freebsd's patch?
>
> When I set patch to "gpatch" in my .hgrc I get:
>
> $ hg debuginstall -v
> Checking encoding (US-ASCII)...
> Checking extensions...
> Checking templates...
> Checking patch...
> NAME
>   gpatch - Apply a gdiff patch to a file

gpatch is not really FreeBSD's patch(1).

> $ hg debuginstall -v
> Checking encoding (US-ASCII)...
> Checking extensions...
> Checking templates...
> Checking patch...
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |--- a/tmptHSSFV        None
> |+++ b/tmptHSSFV        None
> --------------------------
> Patching file tmptHSSFV using Plan A...
> Hunk #1 succeeded at 1.
> done
>  unexpected patch output! (you may have an incompatible version of patch)

I don't have a 6.2-RELEASE installation near me, but I've been using hg
with FreeBSD's patch in 7.0-CURRENT a long time (until the "crew"
version of hg grew mpatch support).

Can you set `patch' to a wrapper script which logs everything in a
script file, and email me that script?



More information about the Mercurial mailing list