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.
--- 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