hgext3rd/evolve/compat.py
changeset 3283 039c4b8dc3ed
parent 3074 8d57acde165d
child 3298 f4b06f44d274
equal deleted inserted replaced
3282:3675fe74521d 3283:039c4b8dc3ed
    95             del bookmarks[name]
    95             del bookmarks[name]
    96         else:
    96         else:
    97             bookmarks[name] = node
    97             bookmarks[name] = node
    98     bookmarks.recordchange(tr)
    98     bookmarks.recordchange(tr)
    99 
    99 
       
   100 def isobsnotesupported():
       
   101     # hack to know obsnote is supported. The patches for obsnote support was
       
   102     # pushed before the obsfateprinter patches, so this will serve as a good
       
   103     # check
       
   104     if not obsutil:
       
   105         return False
       
   106     return util.safehasattr(obsutil, 'obsfateprinter')
       
   107 
   100 # Evolution renaming compat
   108 # Evolution renaming compat
   101 
   109 
   102 TROUBLES = {}
   110 TROUBLES = {}
   103 
   111 
   104 if not util.safehasattr(context.basectx, 'orphan'):
   112 if not util.safehasattr(context.basectx, 'orphan'):