mq: only add mq attribute to local repo
authorVadim Gelfer <vadim.gelfer@gmail.com>
Thu, 10 Aug 2006 17:33:08 -0700
changeset 2851 82f50658c72b
parent 2850 851b07ec450c
child 2852 474adc2bc5f7
mq: only add mq attribute to local repo
hgext/mq.py
--- a/hgext/mq.py	Thu Aug 10 17:18:55 2006 -0700
+++ b/hgext/mq.py	Thu Aug 10 17:33:08 2006 -0700
@@ -1875,8 +1875,9 @@
 
             return tagscache
 
-    repo.__class__ = mqrepo
-    repo.mq = queue(ui, repo.join(""))
+    if repo.local():
+        repo.__class__ = mqrepo
+        repo.mq = queue(ui, repo.join(""))
 
 cmdtable = {
     "qapplied": (applied, [], 'hg qapplied [PATCH]'),