[PATCH 5 of 6] repoview: add a FilteredRepoLookupError

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Oct 16 04:30:10 CDT 2014


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1413450372 25200
#      Thu Oct 16 02:06:12 2014 -0700
# Node ID 56cca5ebc3c92d9affecd349fd0b01c4dca9128e
# Parent  b1c281d9e3f520f013736d74f6f1e239d0dd94d1
repoview: add a FilteredRepoLookupError

This exception is a more precise RepoLookupError that will allow us to issue
special message when we end up accessing a filtered revision.

diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -63,10 +63,13 @@ class RepoError(Exception):
         self.hint = kw.get('hint')
 
 class RepoLookupError(RepoError):
     pass
 
+class FilteredRepoLookupError(RepoLookupError):
+    pass
+
 class CapabilityError(RepoError):
     pass
 
 class RequirementError(RepoError):
     """Exception raised if .hg/requires has an unknown entry."""


More information about the Mercurial-devel mailing list