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