convert: added bookmarks support in filemap
authoretienne <etienne.desautels@gmail.com>
Thu, 15 Sep 2011 15:03:54 -0400
changeset 15107 2433525a9e1e
parent 15106 76cd1964519c
child 15108 4c1ec0fe59d6
convert: added bookmarks support in filemap When using the convert extension from a Mercurial rep. to subset it with filemap, the bookmarks are not copied. I fixed this by calling the base.get_bookmarks() from the filemap getbookmarks() instead of returning an empty dictionary. It should work also for other converters that implement getbookmarks() (like git). I don't see any drawbacks except that the bookmarks are always copied (not necessarily wanted all the times).
hgext/convert/filemap.py
--- a/hgext/convert/filemap.py	Sat Jul 23 06:18:18 2011 +0200
+++ b/hgext/convert/filemap.py	Thu Sep 15 15:03:54 2011 -0400
@@ -375,3 +375,6 @@
 
     def lookuprev(self, rev):
         return self.base.lookuprev(rev)
+
+    def getbookmarks(self):
+        return self.base.getbookmarks()