Issue752

Title qpush doesn't insure patch does not affect unknown files
Priority bug Status chatting
Superseder Nosy List brendan, djc, goobsoft
Assigned To brendan Topics mq, patch

Created on 2007-09-28.04:37:25 by goobsoft, last changed 2008-08-04.16:33:24 by djc.

Files
File name Uploaded Type Edit Remove
f212c219a.txt djc, 2008-08-04.16:33:23 text/plain
Messages
msg6702 (view) Author: djc Date: 2008-08-04.16:33:23
Uploading the patch from pastebin here, just to be sure.
msg4160 (view) Author: goobsoft Date: 2007-10-21.06:57:21
http://pastebin.com/f212c219a
msg4042 (view) Author: goobsoft Date: 2007-09-28.04:37:24
If a patch affects an unknown file a and it is qimported, qpushed, and qpoped, a
will be deleted.  Below are the commands to reproduce.

mkdir tmp1
mkdir tmp2

echo hi >> tmp1/foo
echo h2 >> tmp2/foo

diff -uNr tmp1 tmp2 > unified.patch

cd tmp1
hg init
hg qinit
hg qimport ../unified.patch
hg qpush
hg qpop
ls -l foo
#ls: foo: No such file or directory <- bad
History
Date User Action Args
2008-08-04 16:33:24djcsetfiles: + f212c219a.txt
nosy: + djc
messages: + msg6702
2008-02-11 12:36:32djcsettopic: + patch
nosy: brendan, goobsoft
2007-10-21 06:57:22goobsoftsetstatus: unread -> chatting
nosy: brendan, goobsoft
messages: + msg4160
2007-09-28 04:40:30goobsoftsetassignedto: brendan
nosy: + brendan
2007-09-28 04:37:25goobsoftcreate