[issue1316] internal patch doesn't like empty files

Malahal mercurial-bugs at selenic.com
Mon Sep 29 18:14:08 CDT 2008


New submission from Malahal <malahal at gmail.com>:

I got a patch from someone that diff'ed against empty files for generating new
files. The GNU patch program works fine but the internal patch doesn't lik it.
Here are some commands to show the bug:

$ hg init
$ touch /tmp/a.orig
$ echo 'AAAA' > /tmp/a
$ diff -u /tmp/a.orig  /tmp/a > /tmp/x.patch
$ hg qimport /tmp/x.patch
adding x.patch to series file
$ hg qpush
applying x.patch
unable to find 'tmp/a' for patching
1 out of 1 hunk FAILED -- saving rejects to file tmp/a.rej
patch failed, unable to continue (try -v)
No username found, using 'malahal at c2d' instead
patch failed, rejects left in working dir
Errors during apply, please fix and refresh x.patch

----------
messages: 7250
nosy: malahal
priority: bug
status: unread
title: internal patch doesn't like empty files

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



More information about the Mercurial-devel mailing list