Show More
@@ -677,17 +677,13 b' def reposetup(ui, repo):' | |||||
677 | 'extension and has been disabled.\n') % ext) |
|
677 | 'extension and has been disabled.\n') % ext) | |
678 | return |
|
678 | return | |
679 |
|
679 | |||
680 | if util.safehasattr(repo, 'dirstate'): |
|
680 | if repo.local(): | |
681 |
# We don't work with subrepos either. |
|
681 | # We don't work with subrepos either. | |
682 | # e.g. a statichttprepo, which throws on trying to access the substate. |
|
682 | # | |
683 | # XXX This sucks. |
|
|||
684 | try: |
|
|||
685 |
|
|
683 | # if repo[None].substate can cause a dirstate parse, which is too | |
686 |
|
|
684 | # slow. Instead, look for a file called hgsubstate, | |
687 |
|
|
685 | if repo.wvfs.exists('.hgsubstate') or repo.wvfs.exists('.hgsub'): | |
688 |
|
|
686 | return | |
689 | except AttributeError: |
|
|||
690 | return |
|
|||
691 |
|
687 | |||
692 | fsmonitorstate = state.state(repo) |
|
688 | fsmonitorstate = state.state(repo) | |
693 | if fsmonitorstate.mode == 'off': |
|
689 | if fsmonitorstate.mode == 'off': |
General Comments 0
You need to be logged in to leave comments.
Login now