changeset 2851:82f50658c72b

mq: only add mq attribute to local repo
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 10 Aug 2006 17:33:08 -0700
parents 851b07ec450c
children 474adc2bc5f7
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]'),