D6595: changelog: fix handling of empty copy entries in changeset
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Jul 4 15:01:07 UTC 2019
Closed by commit rHGe3df1e15bee9: changelog: fix handling of empty copy entries in changeset (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6595?vs=15736&id=15759
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6595/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6595
AFFECTED FILES
mercurial/changelog.py
CHANGE DETAILS
diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -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):
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list