[issue1758] import fails on copy/rename git-patches

MNemo mercurial-bugs at selenic.com
Thu Jul 23 16:10:48 UTC 2009


New submission from MNemo <mnemo at united-bits.de>:

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

----------
messages: 10178
nosy: MNemo
priority: bug
status: unread
title: import fails on copy/rename git-patches

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



More information about the Mercurial-devel mailing list