# HG changeset patch # User Augie Fackler # Date 1327203567 21600 # Node ID 341c58282b2583e8f728714e2752fc0140eac4d2 # Parent 089ee59a86588e54961e5bbd29d921a1ca285d3a 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. diff -r 089ee59a8658 -r 341c58282b25 hgext/mq.py --- 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