diff -r 9e46627baa3c -r 19df975eb555 mercurial/error.py --- a/mercurial/error.py Wed May 31 20:07:08 2017 -0700 +++ b/mercurial/error.py Thu May 25 16:50:23 2017 +0200 @@ -138,6 +138,14 @@ hint=_('see https://mercurial-scm.org/wiki/MergeStateRecords for ' 'more information')) +class UnknownVersion(Abort): + """generic exception for aborting from an encounter with an unknown version + """ + + def __init__(self, msg, hint=None, version=None): + self.version = version + super(UnknownVersion, self).__init__(msg, hint=hint) + class LockError(IOError): def __init__(self, errno, strerror, filename, desc): IOError.__init__(self, errno, strerror, filename)