Mercurial > public > mercurial-scm > hg
diff mercurial/bookmarks.py @ 39304:fc54a290b4b0
bookmarks: adjust exception type so present(bookmark(.)) works as expected
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 25 Aug 2018 20:19:27 +0900 |
parents | fbec9c0b32d3 |
children | 713085b45810 |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Sat Aug 25 20:16:28 2018 +0900 +++ b/mercurial/bookmarks.py Sat Aug 25 20:19:27 2018 +0900 @@ -240,7 +240,7 @@ if self.active: return self.active else: - raise error.Abort(_("no active bookmark")) + raise error.RepoLookupError(_("no active bookmark")) return bname def checkconflict(self, mark, force=False, target=None):