changeset 42553 | e3df1e15bee9 |
parent 42446 | 055c3e2c44f0 |
child 42861 | 57ea0a81a65c |
--- a/mercurial/changelog.py Sun Jun 30 17:52:57 2019 +0530 +++ b/mercurial/changelog.py Mon Jul 01 16:25:51 2019 -0700 @@ -92,6 +92,8 @@ def decodecopies(files, data): try: copies = {} + if not data: + return copies for l in data.split('\n'): strindex, src = l.split('\0') i = int(strindex) @@ -114,6 +116,8 @@ def decodefileindices(files, data): try: subset = [] + if not data: + return subset for strindex in data.split('\n'): i = int(strindex) if i < 0 or i >= len(files):