comparison hgext/convert/filemap.py @ 15107:2433525a9e1e

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).
author etienne <etienne.desautels@gmail.com>
date Thu, 15 Sep 2011 15:03:54 -0400
parents 82845434e974
children 3992c7df85f2
comparison
equal deleted inserted replaced
15106:76cd1964519c 15107:2433525a9e1e
373 def hasnativeorder(self): 373 def hasnativeorder(self):
374 return self.base.hasnativeorder() 374 return self.base.hasnativeorder()
375 375
376 def lookuprev(self, rev): 376 def lookuprev(self, rev):
377 return self.base.lookuprev(rev) 377 return self.base.lookuprev(rev)
378
379 def getbookmarks(self):
380 return self.base.getbookmarks()