[issue1518] MQ can't handle empty files - file is silently removed after qpop-qpush
Benny Bach
mercurial-bugs at selenic.com
Thu Feb 19 04:44:03 CST 2009
New submission from Benny Bach <benny.bach at gmail.com>:
To reproduce:
md hg-mq-empty-patch
hg init
echo "foo" >> foo.txt
echo "bar" >> bar.txt
hg addremove
hg commit -m "initial import"
Now make a patch:
md subdir
touch subdir\.dummy
echo "foo" >> foo.txt
hg add subdir\.dummy
hg qnew -f empty-file
hg log -v -r 1 shows:
changeset: 1:4adae60125af
tag: qtip
tag: empty-file
tag: tip
tag: qbase
user: Benny Bach <benny.bach at gmail.com>
date: Thu Feb 19 11:30:18 2009 +0100
files: foo.txt subdir/.dummy
description:
[mq]: empty-file
Now do qpop-qpush
hg qpop
hg qpush
hg log -v -r 1 shows:
changeset: 1:01f6b9742f83
tag: qtip
tag: empty-file
tag: tip
tag: qbase
user: Benny Bach <benny.bach at gmail.com>
date: Thu Feb 19 11:31:00 2009 +0100
files: foo.txt
description:
imported patch empty-file
subdir/.dummy was lost!
----------
messages: 8666
nosy: BennyBach
priority: bug
status: unread
title: MQ can't handle empty files - file is silently removed after qpop-qpush
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1518>
____________________________________________________
More information about the Mercurial-devel
mailing list