hgext/obsolete.py
changeset 434 9863e196cc65
parent 433 aa1255c2ac8f
child 435 97d82fbd2c24
equal deleted inserted replaced
433:aa1255c2ac8f 434:9863e196cc65
   789         return
   789         return
   790 
   790 
   791     opush = repo.push
   791     opush = repo.push
   792     o_updatebranchcache = repo.updatebranchcache
   792     o_updatebranchcache = repo.updatebranchcache
   793 
   793 
   794     # /!\ api change in  Hg 2.2 (97efd26eb9576f39590812ea9) /!\
       
   795     if util.safehasattr(repo, '_journalfiles'): # Hg 2.2
       
   796         o_journalfiles = repo._journalfiles
       
   797     o_writejournal = repo._writejournal
   794     o_writejournal = repo._writejournal
   798     o_hook = repo.hook
   795     o_hook = repo.hook
   799 
   796 
   800 
   797 
   801     class obsoletingrepo(repo.__class__):
   798     class obsoletingrepo(repo.__class__):