# HG changeset patch # User Anton Shestakov # Date 2023-01-25 13:52:00 # Node ID 43bfddcba7d6ea7e04056f6a495cf5591bfb195f # Parent 76c128d4de4e68ca188b3ed197af4a4c4e01b691 convert: brz 3.3.0 moved NoSuchFile exception to breezy.transport diff --git a/hgext/convert/bzr.py b/hgext/convert/bzr.py --- a/hgext/convert/bzr.py +++ b/hgext/convert/bzr.py @@ -41,6 +41,12 @@ try: revision = breezy.revision revisionspec = breezy.revisionspec revisionspec.RevisionSpec + + try: + # brz 3.3.0 (revno: 7614.2.2) + from breezy.transport import NoSuchFile + except ImportError: + from breezy.errors import NoSuchFile except ImportError: pass @@ -150,7 +156,7 @@ class bzr_source(common.converter_source try: kind = revtree.kind(name) - except breezy.errors.NoSuchFile: + except NoSuchFile: return None, None if kind not in supportedkinds: # the file is not available anymore - was deleted