Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
32678:55ff67ffcead | 32679:7b17f9de6d3e |
---|---|
188 except error.InterventionRequired as inst: | 188 except error.InterventionRequired as inst: |
189 ui.warn("%s\n" % inst) | 189 ui.warn("%s\n" % inst) |
190 if inst.hint: | 190 if inst.hint: |
191 ui.warn(_("(%s)\n") % inst.hint) | 191 ui.warn(_("(%s)\n") % inst.hint) |
192 return 1 | 192 return 1 |
193 except error.WdirUnsupported: | |
194 ui.warn(_("abort: working directory revision cannot be specified\n")) | |
193 except error.Abort as inst: | 195 except error.Abort as inst: |
194 ui.warn(_("abort: %s\n") % inst) | 196 ui.warn(_("abort: %s\n") % inst) |
195 if inst.hint: | 197 if inst.hint: |
196 ui.warn(_("(%s)\n") % inst.hint) | 198 ui.warn(_("(%s)\n") % inst.hint) |
197 except ImportError as inst: | 199 except ImportError as inst: |