[PATCH 5 of 5] crecord: use ProgrammingError
Jun Wu
quark at fb.com
Sun Mar 26 20:14:54 EDT 2017
# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1490572823 25200
# Sun Mar 26 17:00:23 2017 -0700
# Node ID 234ade0bb549d9d1bd20aba41cd8ddc96619d703
# Parent 4b594304a50056b5bde7b193e5496db6f68982dc
# Available At https://bitbucket.org/quark-zju/hg-draft
# hg pull https://bitbucket.org/quark-zju/hg-draft -r 234ade0bb549
crecord: use ProgrammingError
diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -565,5 +565,5 @@ class curseschunkselector(object):
# affects some ui text
if operation not in _headermessages:
- raise RuntimeError('unexpected operation: %s' % operation)
+ raise error.ProgrammingError('unexpected operation: %s' % operation)
self.operation = operation
More information about the Mercurial-devel
mailing list