[issue2427] hg qrm same patch twice breaks patch queue

Alberth bugs at mercurial.selenic.com
Sat Oct 9 15:19:57 UTC 2010


New submission from Alberth <alberth289346 at gmail.com>:

When trying to remove the same patch file twice, the file gets deleted, but
not from the patch series file.
Trying to push the file (obviously) fails then.

Attached a shell script to reproduce the issue.
Output at my system:
--------------------------------------
popping add_foo
patch queue now empty

Patch queue:
add_foo

hg qrm add_foo add_foo     (notice it tries to remove 'add_foo' twice)
abort: No such file or directory:
/home/user/tmp/qrm_issue_repo/.hg/patches/add_foo

patch queue after delete:
add_foo

Files (ls -l .hg/patches)
total 4
-rw-r--r--. 1 user user 8 Oct  9 15:34 series
-rw-r--r--. 1 user user 0 Oct  9 15:34 status

No 'add_foo' patch file, while the patch queue thinks it still exists!!

Version:
Mercurial Distributed SCM (version 1.6.3)

Copyright (C) 2005-2010 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--------------------------------------

----------
files: qrm_issue.sh
messages: 13888
nosy: Alberth
priority: bug
status: unread
title: hg qrm same patch twice breaks patch queue
topic: 1.6.3, mq

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2427>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qrm_issue.sh
Type: application/x-sh
Size: 542 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101009/6cd7c7c9/attachment.sh>


More information about the Mercurial-devel mailing list