bookmarks: use API to determine if repo is local
authorAlexander Solovyov <piranha@piranha.org.ua>
Sun, 25 Oct 2009 12:05:07 +0200
changeset 9643 013cc052a926
parent 9642 7d17794f08a9
child 9644 c6b721da201b
bookmarks: use API to determine if repo is local
hgext/bookmarks.py
--- a/hgext/bookmarks.py	Sun Oct 25 02:53:33 2009 +0200
+++ b/hgext/bookmarks.py	Sun Oct 25 12:05:07 2009 +0200
@@ -231,7 +231,7 @@
         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