equal
deleted
inserted
replaced
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, |