Mercurial > hg-stable
diff mercurial/scmutil.py @ 32679:7b17f9de6d3e
revlog: map rev(wdirid) to WdirUnsupported exception
This will allow us to map repo["ff..."] to workingctx. _partialmatch() will
be updated later. I tried "return wdirrev" in place of raising the exception,
but earlier exception seemed better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 20 Aug 2016 22:37:58 +0900 |
parents | 55ff67ffcead |
children | 65cadeea6c22 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sat Jun 03 19:12:01 2017 +0900 +++ b/mercurial/scmutil.py Sat Aug 20 22:37:58 2016 +0900 @@ -190,6 +190,8 @@ if inst.hint: ui.warn(_("(%s)\n") % inst.hint) return 1 + except error.WdirUnsupported: + ui.warn(_("abort: working directory revision cannot be specified\n")) except error.Abort as inst: ui.warn(_("abort: %s\n") % inst) if inst.hint: