Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 1214:34706a835d4a
Smarter handling of revlog key errors
Use RevlogError for reporting exceptions
Catch and report RevlogError exceptions at the command parser
author | mpm@selenic.com |
---|---|
date | Wed, 07 Sep 2005 23:38:28 -0700 |
parents | ccb6201e3f28 |
children | 8b4435aae40a |
comparison
equal
deleted
inserted
replaced
1213:db9639b8594c | 1214:34706a835d4a |
---|---|
1959 if options['traceback']: | 1959 if options['traceback']: |
1960 traceback.print_exc() | 1960 traceback.print_exc() |
1961 raise | 1961 raise |
1962 except hg.RepoError, inst: | 1962 except hg.RepoError, inst: |
1963 u.warn("abort: ", inst, "!\n") | 1963 u.warn("abort: ", inst, "!\n") |
1964 except revlog.RevlogError, inst: | |
1965 u.warn("abort: ", inst, "!\n") | |
1964 except SignalInterrupt: | 1966 except SignalInterrupt: |
1965 u.warn("killed!\n") | 1967 u.warn("killed!\n") |
1966 except KeyboardInterrupt: | 1968 except KeyboardInterrupt: |
1967 try: | 1969 try: |
1968 u.warn("interrupted!\n") | 1970 u.warn("interrupted!\n") |