[PATCH 1 of 2] bookmarks: set a tagtype of 'bookmark'

Cesar Mena cmena at pobox.com
Mon Jun 21 16:58:07 CDT 2010


# HG changeset patch
# User Cesar Mena <cmena at pobox.com>
# Date 1277154987 14400
# Node ID a5d8bceda56cad38b105d30a08d19569fcfbbb37
# Parent  a99ef3711890637fa93c9be676cbe2b5f5676d14
bookmarks: set a tagtype of 'bookmark'

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -348,7 +348,9 @@
         def _findtags(self):
             """Merge bookmarks with normal tags"""
             (tags, tagtypes) = super(bookmark_repo, self)._findtags()
-            tags.update(self._bookmarks)
+            for k,v in self._bookmarks.iteritems():
+                tags[k] = v
+                tagtypes[k] = 'bookmark'
             return (tags, tagtypes)
 
         if hasattr(repo, 'invalidate'):


More information about the Mercurial-devel mailing list