Submitter | phabricator |
---|---|
Date | Jan. 8, 2021, 8:37 p.m. |
Message ID | <differential-rev-PHID-DREV-s7q7ior7r6v45sea2hqa-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/48017/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/shelve.py b/mercurial/shelve.py --- a/mercurial/shelve.py +++ b/mercurial/shelve.py @@ -28,7 +28,6 @@ import stat from .i18n import _ -from .pycompat import open from .node import ( bin, hex, @@ -672,7 +671,7 @@ ui.write(age, label=b'shelve.age') ui.write(b' ' * (12 - len(age))) used += 12 - with open(name + b'.' + patchextension, b'rb') as fp: + with Shelf(repo, sname).open_patch() as fp: while True: line = fp.readline() if not line: