Show More
@@ -522,12 +522,8 b' def _readrequires(vfs, allowmissing):' | |||||
522 | # the repository. This file was introduced in Mercurial 0.9.2, |
|
522 | # the repository. This file was introduced in Mercurial 0.9.2, | |
523 | # which means very old repositories may not have one. We assume |
|
523 | # which means very old repositories may not have one. We assume | |
524 | # a missing file translates to no requirements. |
|
524 | # a missing file translates to no requirements. | |
525 | try: |
|
525 | read = vfs.tryread if allowmissing else vfs.read | |
526 |
|
|
526 | return set(read(b'requires').splitlines()) | |
527 | except FileNotFoundError: |
|
|||
528 | if not allowmissing: |
|
|||
529 | raise |
|
|||
530 | return set() |
|
|||
531 |
|
527 | |||
532 |
|
528 | |||
533 | def makelocalrepository(baseui, path, intents=None): |
|
529 | def makelocalrepository(baseui, path, intents=None): |
General Comments 0
You need to be logged in to leave comments.
Login now