Bug 2363 - able to push patch without qfinish-ing it; cannot later pop
Summary: able to push patch without qfinish-ing it; cannot later pop
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 13:12 UTC by David Bruton
Modified: 2012-05-13 04:53 UTC (History)
6 users (show)

See Also:
Python Version: ---


Attachments
(34 bytes, application/x-sh)
2010-09-06 13:12 UTC, David Bruton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Bruton 2010-09-06 13:12 UTC
Hi,

I am able to push a patch without first qfinishing it, by using the "-r
<branch>" option.  Later, I cannot qpop that patch; qpop fails with the
following message:

"abort: popping would remove a revision not managed by this patch queue"

(I assume that is referring to the child node that would be lost, though in
my case, I wouldn't care, as I'd just pull it back again!)

Attached is an annotated testcase that demonstrates the issue.

This was discovered on 1.5 but I just gave it a quick try on
1.6.3+2-b10b07a821c3 and it happens there too.

-djlb.
Comment 1 HG Bot 2010-09-22 17:00 UTC
Fixed by http://hg.intevation.org/mercurial/crew/rev/ab237534d800
Patrick Mezard <pmezard@gmail.com>
mq: always require --force when pushing patches (issue2363)
Comment 2 Patrick Mézard 2010-09-23 00:59 UTC
In main, resolving

Thanks for reporting this!
Comment 3 David Bruton 2010-09-23 03:44 UTC
> Thanks for reporting this!

Thanks for fixing it.

I just tried 1.6.3+42-6aa2c86db2eb and it now rejects my attempt to push,
which is satisfactory behaviour.

Please close the issue.  Thank you.

-djlb.
Comment 4 Bugzilla 2012-05-12 09:12 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:12 EDT  ---

This bug was previously known as _bug_ 2363 at http://mercurial.selenic.com/bts/issue2363
Imported an attachment (id=1452)