mercurial/util.py
changeset 48013 376d08ae904f
parent 48010 ae79611e3115
child 48528 75fc2537d93c
--- a/mercurial/util.py	Mon Sep 20 11:03:46 2021 -0400
+++ b/mercurial/util.py	Mon Sep 20 11:05:30 2021 -0400
@@ -1225,6 +1225,8 @@
     if n == 4:
         return (vints[0], vints[1], vints[2], extra)
 
+    raise error.ProgrammingError(b"invalid version part request: %d" % n)
+
 
 def cachefunc(func):
     '''cache the result of function calls'''