Issue1758

Title import fails on copy/rename git-patches
Priority bug Status resolved
Superseder Nosy List afuna, djc, mpm, tonfa, x539
Assigned To Topics patch

Created on 2009-07-23.16:10:48 by x539, last changed 2011-10-10.22:57:14 by x539.

Messages
msg15219 (view) Author: afuna Date: 2011-02-13.04:34:24
The set of steps listed below works for me on 1.7.5, without causing any 
error. Perhaps fixed in the meantime?
msg10181 (view) Author: mpm Date: 2009-07-23.17:52:32
related to issue1329
msg10178 (view) Author: x539 Date: 2009-07-23.16:10:48
Using Mercurial v1.3 importing a patch that contains 

copy a to b
rename a to c

fails with: "abort: a: file not found!"
although every changes where applied perfectly
just a commit with msg, date, … from the patch is missing.

Reproduce with: 

hg init rep1
hg init rep2

cd rep1
echo "file1" > file1
hg ci -A -m "patch base"
hg push ../rep2

hg cp file1 file1.txt
hg mv file1 file2.txt
hg ci -A -m "copy/rename"

hg export -g -o ../patch.diff tip

cd ../rep2
hg up
hg import --exact ../patch.diff
History
Date User Action Args
2011-10-10 22:57:14x539setstatus: chatting -> resolved
nosy: mpm, tonfa, djc, x539, afuna
2011-02-13 04:34:24afunasetnosy: + afuna
messages: + msg15219
2010-03-19 19:38:29tonfasettopic: + patch
nosy: mpm, tonfa, djc, x539
2010-03-19 19:38:24tonfasetnosy: + tonfa
2009-07-23 17:52:32mpmsetstatus: unread -> chatting
nosy: + mpm
messages: + msg10181
2009-07-23 17:27:52djcsetnosy: + djc
2009-07-23 16:10:48x539create