D5740: py3: pass str into RuntimeError() to prevent b'' in output
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Jan 30 07:37:10 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1a4a41d39dfc: py3: pass str into RuntimeError() to prevent b'' in output (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5740?vs=13562&id=13569
REVISION DETAIL
https://phab.mercurial-scm.org/D5740
AFFECTED FILES
hgext/remotefilelog/shallowutil.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/shallowutil.py b/hgext/remotefilelog/shallowutil.py
--- a/hgext/remotefilelog/shallowutil.py
+++ b/hgext/remotefilelog/shallowutil.py
@@ -237,9 +237,9 @@
# v0, str(int(size)) is the header
size = int(header)
except ValueError:
- raise RuntimeError("unexpected remotefilelog header: illegal format")
+ raise RuntimeError(r"unexpected remotefilelog header: illegal format")
if size is None:
- raise RuntimeError("unexpected remotefilelog header: no size found")
+ raise RuntimeError(r"unexpected remotefilelog header: no size found")
return index + 1, size, flags
def buildfileblobheader(size, flags, version=None):
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list