Mercurial > hg
comparison mercurial/crecord.py @ 31649:4bc3e55cf386
crecord: use ProgrammingError
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 26 Mar 2017 17:00:23 -0700 |
parents | a0c4e57074fe |
children | bf6b44da1d8e |
comparison
equal
deleted
inserted
replaced
31648:8defc7d9adae | 31649:4bc3e55cf386 |
---|---|
562 # if the last 'toggle all' command caused all changes to be applied | 562 # if the last 'toggle all' command caused all changes to be applied |
563 self.waslasttoggleallapplied = True | 563 self.waslasttoggleallapplied = True |
564 | 564 |
565 # affects some ui text | 565 # affects some ui text |
566 if operation not in _headermessages: | 566 if operation not in _headermessages: |
567 raise RuntimeError('unexpected operation: %s' % operation) | 567 raise error.ProgrammingError('unexpected operation: %s' % operation) |
568 self.operation = operation | 568 self.operation = operation |
569 | 569 |
570 def uparrowevent(self): | 570 def uparrowevent(self): |
571 """ | 571 """ |
572 try to select the previous item to the current item that has the | 572 try to select the previous item to the current item that has the |