GNU bug report logs - #26028
26.0.50; epatch for multifile patches

Previous Next

Package: emacs;

Reported by: Arseny Sher <sher-ars <at> yandex.ru>

Date: Wed, 8 Mar 2017 17:34:01 UTC

Severity: minor

Tags: patch

Found in version 26.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arseny Sher <sher-ars <at> yandex.ru>
Cc: 26028 <at> debbugs.gnu.org
Subject: bug#26028: 26.0.50; epatch for multifile patches
Date: Wed, 08 Mar 2017 21:17:12 +0200
> From: Arseny Sher <sher-ars <at> yandex.ru>
> Date: Wed, 08 Mar 2017 20:29:52 +0300
> 
> ars <at> ars-thinkpad ~/tmp $ mkdir -p old/src
> ars <at> ars-thinkpad ~/tmp $ echo "void main() { }" > old/src/hello.c
> ars <at> ars-thinkpad ~/tmp $ mkdir -p new/src
> ars <at> ars-thinkpad ~/tmp $ echo "int main() { return 0; }" > new/src/hello.c
> ars <at> ars-thinkpad ~/tmp $ diff -cr old/ new/ > tmp.patch
> ars <at> ars-thinkpad ~/tmp $ cat tmp.patch
> diff -cr old/src/hello.c new/src/hello.c
> *** old/src/hello.c	2017-03-08 14:29:24.743846995 +0300
> --- new/src/hello.c	2017-03-08 14:29:32.399846824 +0300
> ***************
> *** 1 ****
> ! void main() { }
> --- 1 ----
> ! int main() { return 0; }
> 
> 
> Now I start emacs and do M-x epatch. First of all, it asks me for
> patch buffer or file, I point to '~/tmp/tmp.patch'. Then it asks for
> directory to patch, I say '~/tmp/old' and ediff complains
> 
> Ediff has inferred that
> 	/home/ars/tmp/old/hello.c
> is assumed to be the target for this patch.  However, this file does not exist.

I think you should point it to ~/tmp, not ~/tmp/old.  IOW, the
directory should be the one relative to which the file names in the
patch file will correctly point to the files.




This bug report was last modified 3 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.