--- a/hgext/mq.py Tue Jan 15 01:05:12 2013 +0100
+++ b/hgext/mq.py Tue Jan 15 01:05:12 2013 +0100
@@ -1406,8 +1406,6 @@
self.applieddirty = True
end = len(self.applied)
rev = self.applied[start].node
- if update:
- top = self.checktoppatch(repo)[0]
try:
heads = repo.changelog.heads(rev)
@@ -1428,7 +1426,7 @@
if update:
qp = self.qparents(repo, rev)
ctx = repo[qp]
- m, a, r, d = repo.status(qp, top)[:4]
+ m, a, r, d = repo.status(qp, '.')[:4]
if d:
raise util.Abort(_("deletions found between repo revs"))