mercurial/hook.py
branchstable
changeset 50325 2761ce777fc4
parent 48913 f254fc73d956
child 50920 c642c03969ff
equal deleted inserted replaced
50324:e6532a7336d0 50325:2761ce777fc4
   189         cwd = repo.root
   189         cwd = repo.root
   190     else:
   190     else:
   191         cwd = encoding.getcwd()
   191         cwd = encoding.getcwd()
   192     r = ui.system(cmd, environ=env, cwd=cwd, blockedtag=b'exthook-%s' % (name,))
   192     r = ui.system(cmd, environ=env, cwd=cwd, blockedtag=b'exthook-%s' % (name,))
   193 
   193 
       
   194     if repo is not None and repo.currentwlock() is None:
       
   195         repo.invalidatedirstate()
       
   196     if repo is not None and repo.currentlock() is None:
       
   197         repo.invalidate()
       
   198 
   194     duration = util.timer() - starttime
   199     duration = util.timer() - starttime
   195     ui.log(
   200     ui.log(
   196         b'exthook',
   201         b'exthook',
   197         b'exthook-%s: %s finished in %0.2f seconds\n',
   202         b'exthook-%s: %s finished in %0.2f seconds\n',
   198         name,
   203         name,