Show More
@@ -677,16 +677,12 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. |
|
683 | # if repo[None].substate can cause a dirstate parse, which is too | |
684 | try: |
|
684 | # slow. Instead, look for a file called hgsubstate, | |
685 | # if repo[None].substate can cause a dirstate parse, which is too |
|
685 | if repo.wvfs.exists('.hgsubstate') or repo.wvfs.exists('.hgsub'): | |
686 | # slow. Instead, look for a file called hgsubstate, |
|
|||
687 | if repo.wvfs.exists('.hgsubstate') or repo.wvfs.exists('.hgsub'): |
|
|||
688 | return |
|
|||
689 | except AttributeError: |
|
|||
690 | return |
|
686 | return | |
691 |
|
687 | |||
692 | fsmonitorstate = state.state(repo) |
|
688 | fsmonitorstate = state.state(repo) |
General Comments 0
You need to be logged in to leave comments.
Login now