[PATCH 3 of 9 V6] bookmarks: introduce BookmarksDecodeError

Stanislau Hlebik stash at fb.com
Tue Oct 11 12:25:45 EDT 2016


# HG changeset patch
# User Stanislau Hlebik <stash at fb.com>
# Date 1476195835 25200
#      Tue Oct 11 07:23:55 2016 -0700
# Node ID 6f5a3300a5457c92eb09170a30c98328ebe3bcce
# Parent  91ae660eb2faf74cb96ee7ee5bdcc1f2507f9cf7
bookmarks: introduce BookmarksDecodeError

Binary encoding for bookmarks will be added in next diffs.
This error will be thrown if there are problems with bookmarks decoding.

diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -247,3 +247,7 @@
 class BookmarksEncodeError(Exception):
     """Raised if bookmarks can't be encoded
     """
+
+class BookmarksDecodeError(Exception):
+    """Raised if bookmarks can't be decoded
+    """


More information about the Mercurial-devel mailing list