sapling/hgext
FUJIWARA Katsunori d8d8f99761 mq: examine "pushable" of already applied patch correctly
Before this patch, "hg qselect" with --pop/--reapply may pop patches
unexpectedly, even when all of patches applied before "qselect" are
still pushable.

Strictly speaking about the condition of this issue:

  - before "qselect"
    - there are N applied patches
    - the index of the guarded patch X in the series is less than N

  - after "qselect"
    - X is still guarded, and
    - all of applied patched are still pushable

In the case above, "hg qselect" should keep current status, but it
actually tries to pop patches because of X.

The index in "the series" should be used to examine "pushable" of a
patch by "mq.pushablek()", but the index in "applied patches" is used,
and this may cause unexpected examination of guarded patch.

To examine "pushable" of already applied patch correctly, this patch
uses "mq.applied[i].name": "pushable" is the function introduced by
the previous patch, and it returns "mq.pushable(mq.applied[i].name)[0]".
2014-09-12 02:29:19 +09:00
..
convert convert: fix argument mismatch at formatting the abort message 2014-08-01 02:14:24 +09:00
highlight check-code: check for spaces around = for named parameters 2013-10-03 14:50:47 +02:00
largefiles largefiles: don't override matchandpats for always matchers (issue4334) 2014-08-13 15:51:33 -07:00
zeroconf zeroconf: use port from server instead of picking port from config (issue3746) 2012-12-30 19:19:52 +01:00
__init__.py Re-add hgext/__init__.py 2005-09-29 12:49:01 -07:00
acl.py check-code: check for spaces around = for named parameters 2013-10-03 14:50:47 +02:00
blackbox.py blackbox: fix blackbox causing exceptions in tests 2013-05-22 17:38:24 -07:00
bugzilla.py bugzilla: correct config documentation error 2014-07-03 10:56:03 +01:00
children.py children: define inferrepo in command decorator 2014-05-04 22:25:28 -07:00
churn.py churn: define inferrepo in command decorator 2014-05-04 22:24:38 -07:00
color.py color: pass on key error for win32 (issue4298) 2014-08-01 13:09:06 -05:00
eol.py i18n: fix "% inside _()" problems 2014-04-01 02:46:03 +09:00
extdiff.py extdiff: define inferrepo in command decorator 2014-05-04 22:29:27 -07:00
factotum.py factotum: initialize global variables to suppress pyflakes warning 2014-05-02 18:24:10 +09:00
fetch.py doc: unify help text for "--edit" option 2014-07-30 00:14:52 +09:00
gpg.py doc: unify help text for "--message" option 2014-07-30 00:13:59 +09:00
graphlog.py graphlog: define inferrepo in command decorator 2014-05-04 22:28:46 -07:00
hgcia.py changeset_templater: remove use_template method 2014-03-08 16:14:08 -06:00
hgk.py hgk: define inferrepo in command decorator 2014-05-04 22:33:22 -07:00
histedit.py histedit: abort gracefully on --continue/--abort with no state 2014-09-03 20:42:51 +02:00
keyword.py keyword: suppress keyword expansion while 'hg fetch' for internal merge 2014-06-05 16:47:14 +09:00
mq.py mq: examine "pushable" of already applied patch correctly 2014-09-12 02:29:19 +09:00
notify.py changeset_templater: remove use_template method 2014-03-08 16:14:08 -06:00
pager.py pager: add attend-<command> option 2014-05-09 13:32:56 -05:00
patchbomb.py patchbomb: reorder header insertions to clarify code 2014-06-07 11:32:37 -04:00
progress.py progress: use 'encoding.colwidth' to get column width of items correctly 2014-07-06 02:56:41 +09:00
purge.py purge: add options for deleting only files or only directories 2013-11-07 17:24:14 -08:00
rebase.py merge with stable 2014-07-02 00:01:13 -05:00
record.py record: update comment to match code 2014-06-26 11:10:28 -04:00
relink.py relink: declare command using decorator 2014-05-04 21:52:25 -07:00
schemes.py scheme: don't crash on invalid URLs 2013-04-11 14:41:22 +02:00
share.py share: define norepo in command decorator 2014-05-04 22:03:11 -07:00
shelve.py shelve: accept '--edit' like other commands creating new changeset 2014-06-20 16:15:38 +09:00
strip.py strip: drop -b/--backup option (BC) 2014-07-11 18:04:51 -05:00
transplant.py transplant: use "getcommiteditor()" instead of explicit editor choice 2014-05-11 00:49:35 +09:00
win32mbcs.py win32mbcs: wrap util.split() 2013-07-04 23:05:59 +09:00
win32text.py extensions: mark win32text deprecated 2014-03-01 19:51:22 -06:00