Mercurial > hg
comparison hgext/fsmonitor/__init__.py @ 43391:ffdf0bf28212 stable
fsmonitor: access repo.root
There is no repo._root. It looks like fsmonitor has
been busted since this access was introduced in
ab1900323b1 in July 2019!
Differential Revision: https://phab.mercurial-scm.org/D7207
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Nov 2019 13:30:23 -0700 |
parents | 5fa8ac91190e |
children | bdebc7b54dca |
comparison
equal
deleted
inserted
replaced
43390:5fa8ac91190e | 43391:ffdf0bf28212 |
---|---|
925 fsmonitorstate = state.state(repo) | 925 fsmonitorstate = state.state(repo) |
926 if fsmonitorstate.mode == b'off': | 926 if fsmonitorstate.mode == b'off': |
927 return | 927 return |
928 | 928 |
929 try: | 929 try: |
930 client = watchmanclient.client(repo.ui, repo._root) | 930 client = watchmanclient.client(repo.ui, repo.root) |
931 except Exception as ex: | 931 except Exception as ex: |
932 _handleunavailable(ui, fsmonitorstate, ex) | 932 _handleunavailable(ui, fsmonitorstate, ex) |
933 return | 933 return |
934 | 934 |
935 repo._fsmonitorstate = fsmonitorstate | 935 repo._fsmonitorstate = fsmonitorstate |