[PATCH] bookmarks: use API to determine if repo is local

Alexander Solovyov piranha at piranha.org.ua
Sun Oct 25 10:06:14 UTC 2009


# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1256465107 -7200
# Node ID 013cc052a926b1d7b9afee27c9168476e29a0978
# Parent  7d17794f08a9a63652aa51f614735568a675d764
bookmarks: use API to determine if repo is local

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -231,7 +231,7 @@ def strip(oldstrip, ui, repo, node, back
         write(repo, marks)
 
 def reposetup(ui, repo):
-    if not isinstance(repo, localrepo.localrepository):
+    if not repo.local():
         return
 
     # init a bookmark cache as otherwise we would get a infinite reading



More information about the Mercurial-devel mailing list