changeset 2725:9ffee4f07323

mq: update to handle repomap not longer used
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 28 Jul 2006 14:31:20 -0700
parents 9c41ae1908c7
children 51c296f61b6e 5d134f04060f
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Fri Jul 28 13:08:25 2006 -0700
+++ b/hgext/mq.py	Fri Jul 28 14:31:20 2006 -0700
@@ -1195,9 +1195,8 @@
     qbase, destrev = None, None
     if sr.local():
         reposetup(ui, sr)
-        sq = repomap[sr]
-        if sq.applied:
-            qbase = revlog.bin(sq.applied[0].split(':')[0])
+        if sr.mq.applied:
+            qbase = revlog.bin(sr.mq.applied[0].split(':')[0])
             if not hg.islocal(dest):
                 destrev = sr.parents(qbase)[0]
     ui.note(_('cloning main repo\n'))
@@ -1216,8 +1215,7 @@
         if qbase:
             ui.note(_('stripping applied patches from destination repo\n'))
             reposetup(ui, dr)
-            dq = repomap[dr]
-            dq.strip(dr, qbase, update=False, backup=None)
+            dr.mq.strip(dr, qbase, update=False, backup=None)
         if not opts['noupdate']:
             ui.note(_('updating destination repo\n'))
             dr.update(dr.changelog.tip())