diff hgext/mq.py @ 15972:341c58282b25 stable

mq: pass qbase node instead of mq statusentry in phasedefaults This was breaking my remotebranches extension in a completely mystifying way, because repo.lookup was failing to resolve the statusentry. I'm not sure how this works absent my remotebranches extension, but doing it this way looks more correct and doesn't break anything.
author Augie Fackler <durin42@gmail.com>
date Sat, 21 Jan 2012 21:39:27 -0600
parents ec8a9e06cf05
children 2605fc990725
line wrap: on
line diff
--- a/hgext/mq.py	Sat Jan 21 23:50:58 2012 +0100
+++ b/hgext/mq.py	Sat Jan 21 21:39:27 2012 -0600
@@ -3133,7 +3133,7 @@
 def mqphasedefaults(repo, roots):
     """callback used to set mq changeset as secret when no phase data exists"""
     if repo.mq.applied:
-        qbase = repo[repo.mq.applied[0]]
+        qbase = repo[repo.mq.applied[0].node]
         roots[phases.secret].add(qbase.node())
     return roots