hgext/evolve.py
changeset 1720 fe64e69da57b
parent 1717 2ad40d972a74
child 1722 b4be34677fda
equal deleted inserted replaced
1719:6ff0454f1f23 1720:fe64e69da57b
  1022         return repo._bookmarkcurrent
  1022         return repo._bookmarkcurrent
  1023 
  1023 
  1024 ### dirstate compatibility layer < hg 3.6
  1024 ### dirstate compatibility layer < hg 3.6
  1025 
  1025 
  1026 def writedirstate(dirstate, tr):
  1026 def writedirstate(dirstate, tr):
  1027     if dirstate.write.func_defaults is not None: # mercurial 3.6 and above
  1027     if dirstate.write.func_code.co_argcount != 1: # mercurial 3.6 and above
  1028         return dirstate.write(tr)
  1028         return dirstate.write(tr)
  1029     return dirstate.write()
  1029     return dirstate.write()
  1030 
  1030 
  1031 
  1031 
  1032 
  1032