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