sapling/mercurial
Jun Wu f9c05a235e localrepo: use ProgrammingError
This is an example usage of ProgrammingError. Let's start migrating
RuntimeError to ProgrammingError.

The code only runs when devel.all-warnings or devel.check-locks is set, so
it does not affect the end-user experience.
2016-12-06 17:06:39 +00:00
..
cffi setup: move cffi stuff to mercurial/cffi 2016-11-09 22:08:30 +00:00
default.d mergetools.rc: find OSX FileMerge in the new location inside Xcode 4.3 2015-10-16 11:37:34 +02:00
help censor: flag internal documentation 2016-11-23 17:36:35 +00:00
hgweb protocol: declare transport protocol name 2016-11-28 20:46:59 -08:00
httpclient httpclient: update to 54868ef054d2 of httpplus 2016-06-27 11:53:50 -04:00
pure lazymanifest: write a more efficient, pypy friendly version of lazymanifest 2016-09-12 13:37:14 +02:00
templates hgweb: avoid line wrap between revision and annotate-info (issue5398) 2016-10-08 19:32:54 +09:00
__init__.py py3: refactor token parsing to handle call args properly 2016-10-14 17:55:02 +01:00
ancestor.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
archival.py archival: simplify code and drop message about Python 2.5 2016-11-21 18:17:02 -05:00
base85.c base85: fix comparison of an int and a long 2015-08-21 14:29:42 -04:00
bdiff_module.c bdiff: early pruning of common prefix before doing expensive computations 2016-11-16 19:45:35 +01:00
bdiff.c bdiff: don't check border condition in loop 2016-11-20 16:56:21 -08:00
bdiff.h bdiff: split bdiff into cpy-aware and cpy-agnostic part 2016-07-13 10:46:26 +02:00
bitmanipulation.h internals: move the bitmanipulation routines into its own file 2016-06-06 13:08:13 +02:00
bookmarks.py bookmarks: use listbinbookmarks() in listbookmarks() 2016-11-17 00:59:41 -08:00
branchmap.py rbc: fix superfluous rebuilding from scratch - don't abuse self._rbcnamescount 2016-07-18 22:25:09 +02:00
bundle2.py bundle2: equate 'UN' with no compression 2016-11-10 23:29:01 -08:00
bundlerepo.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
byterange.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
changegroup.py changegroup: increase write buffer size to 128k 2016-10-16 13:35:23 -07:00
changelog.py revlog: make 'storedeltachains' a "public" attribute 2016-10-14 02:25:08 +02:00
chgserver.py chgserver: call "load" for new ui objects 2016-12-05 21:36:35 +00:00
cmdutil.py revert: pass operation to crecord 2016-11-23 19:03:24 +00:00
commands.py debugcommands: move 'debugdeltachain' in the new module 2016-08-17 21:01:02 -07:00
commandserver.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
compat.h compat: define ssize_t as int on 32bit Windows, silences C4142 warning 2016-07-15 23:54:56 +09:00
config.py config: mark parser regexes as bytes explicitly 2016-10-09 09:25:39 -04:00
context.py memctx: allow the metadataonlyctx thats reusing the manifest node 2016-11-21 08:09:41 -08:00
copies.py merge: avoid superfluous filemerges when grafting through renames (issue5407) 2016-10-25 21:01:53 +02:00
crecord.py crecord: change the verb according to the operation 2016-11-28 23:38:46 +00:00
dagparser.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
dagutil.py dagutil: use absolute_import 2015-08-08 19:04:09 -07:00
debugcommands.py debugcommands: sort command order 2016-11-25 09:59:39 -08:00
demandimport.py demandimport: disable lazy import of __builtin__ 2016-10-14 03:03:39 +02:00
destutil.py update: use single quotes in use warning 2016-09-02 21:49:33 +00:00
diffhelpers.c diffhelpers: fix botched return statement from e48d70075d8a 2015-01-28 13:34:20 -05:00
dirs.c dirs: use PyVarObject_HEAD_INIT 2016-10-13 13:14:14 +02:00
dirstate.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
dirstateguard.py dirstateguard: move to new module so I can break some layering violations 2016-11-21 21:29:32 -05:00
discovery.py discovery: use single quotes in use warning 2016-09-20 23:47:30 +00:00
dispatch.py ui: factor out ui.load() to create a ui without loading configs (API) 2016-10-22 14:35:10 +09:00
dummycert.pem ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs 2014-09-26 02:19:48 +02:00
encoding.py py3: convert encoding name and mode to str 2016-09-28 20:39:06 +09:00
error.py error: add ProgrammingError 2016-12-06 14:57:47 +00:00
exchange.py exchange: add _getbookmarks() function 2016-11-17 00:59:41 -08:00
exewrapper.c exewrapper: add .dll to LoadLibrary() argument 2016-04-27 09:23:39 -07:00
extensions.py py3: use pycompat.sysstr() in __import__() 2016-12-01 13:12:04 +05:30
fancyopts.py flags: allow specifying --no-boolean-flag on the command line (BC) 2016-09-13 22:57:57 -04:00
filelog.py filelog: use absolute_import 2015-08-08 19:11:42 -07:00
filemerge.py merge: use original file extension for temporary files 2016-11-23 23:47:38 +01:00
fileset.py help: clarify quotes are needed for filesets.size expressions 2016-09-21 16:33:37 +00:00
formatter.py formatter: add overview of API and example as doctest 2016-10-22 15:02:11 +09:00
graphmod.py revset: add new topographical sort 2016-06-13 18:20:00 +01:00
hbisect.py bisect: move check_state into the bisect module 2016-08-24 04:25:20 +02:00
help.py help: backout 6f89f03ad369 (mark boolean flags with [no-] in help) for now 2016-10-09 03:11:18 +02:00
hg.py merge: add conflict labels to merge command 2016-10-07 08:51:50 -07:00
hook.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
httpconnection.py largefiles: use context for file closing 2016-10-08 00:59:41 +02:00
httppeer.py httppeer: assign Vary request header last 2016-11-28 21:07:51 -08:00
i18n.py i18n: make the locale directory name the same string type as the datapath 2016-10-08 05:26:18 -04:00
keepalive.py keepalive: discard legacy Python support for error handling 2016-11-21 22:17:45 -05:00
localrepo.py localrepo: use ProgrammingError 2016-12-06 17:06:39 +00:00
lock.py lock: clear postrelease hooks list after usage 2016-04-16 09:00:15 -07:00
lsprof.py lsprof: use print function 2016-01-02 11:40:53 -08:00
lsprofcalltree.py lsprofcalltree: use print function 2016-01-02 11:45:29 -08:00
mail.py mail: handle renamed email.Header 2016-10-07 17:30:11 +02:00
manifest.c manifest: use PyVarObject_HEAD_INIT 2016-10-13 13:17:23 +02:00
manifest.py manifest: expose the parents() method 2016-11-17 10:59:15 -08:00
match.py match: migrate to util.iterfile 2016-11-14 23:16:05 +00:00
mdiff.py mdiff: remove unused parameter 'refine' from allblocks() 2016-09-27 14:46:34 +02:00
merge.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
mergeutil.py checkunresolved: move to new package to help avoid import cycles 2016-11-21 21:31:45 -05:00
minirst.py minirst: avoid shadowing a variable in a list comprehension 2016-11-10 16:33:41 -05:00
mpatch_module.c mpatch: raise MemoryError instead of mpatchError if lalloc() failed 2016-08-07 10:06:56 +09:00
mpatch.c internals: move the bitmanipulation routines into its own file 2016-06-06 13:08:13 +02:00
mpatch.h mpatch: raise MemoryError instead of mpatchError if lalloc() failed 2016-08-07 10:06:56 +09:00
namespaces.py namespaces: fix name/node confusion 2016-03-16 23:12:43 +00:00
node.py dirstate: change added/modified placeholder hash length to 20 bytes 2016-11-10 02:19:16 -08:00
obsolete.py obsolete: use single quotes in use warning 2016-09-20 23:48:19 +00:00
osutil.c osutil: use PyLongObject on Python 3 for listdir_slot 2016-10-09 13:47:46 +02:00
parser.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
parsers.c parsers: avoid PySliceObject cast on Python 3 2016-10-13 13:34:53 +02:00
patch.py import: abort instead of crashing when copy source does not exist (issue5375) 2016-10-08 05:26:58 -07:00
pathencode.c pathencode: use assert() for PyBytes_Check() 2016-10-13 21:42:11 +02:00
pathutil.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
peer.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
phases.py phases: make writing phaseroots file out avoid ambiguity of file stat 2016-06-03 00:44:20 +09:00
policy.py policy: add cffi policy for PyPy 2016-06-07 15:35:58 +02:00
posix.py posix: give the cached symlink a real target 2016-11-30 16:39:36 +00:00
profiling.py profiling: make statprof the default profiler (BC) 2016-11-04 21:44:25 -07:00
progress.py progress: obtain stderr from ui 2016-10-20 22:12:48 +09:00
pushkey.py pushkey: use absolute_import 2015-08-08 19:57:27 -07:00
pvec.py pvec: use absolute_import 2015-12-21 21:32:58 -08:00
py3kcompat.py py3compat: use absolute_import 2015-12-21 21:31:57 -08:00
pycompat.py py3: add os.getcwdb() to have bytes path 2016-11-22 18:46:50 +05:30
registrar.py registrar: make format strings unicodes and not bytes 2016-10-07 08:32:18 -04:00
repair.py repair: open a file with checkambig=True to avoid file stat ambiguity 2016-09-22 21:52:00 +09:00
repoview.py cleanup: replace uses of util.(md5|sha1|sha256|sha512) with hashlib.\1 2016-06-10 00:12:33 -04:00
revlog.py revlog: ensure that flags do not overflow 2 bytes 2016-11-28 04:34:01 -08:00
revset.py revset: don't cache abstractsmartset min/max invocations infinitely 2016-10-25 18:56:27 +02:00
scmposix.py py3: use pycompat.sysargv in scmposix.systemrcpath() 2016-11-21 15:26:47 +05:30
scmutil.py dispatch: move part of callcatch to scmutil 2016-11-24 00:48:40 +00:00
scmwindows.py scmutil: extend termwidth() to return terminal height, renamed to termsize() 2016-10-20 23:09:05 +09:00
server.py chgserver: make it a core module and drop extension flags 2016-10-15 14:30:16 +09:00
setdiscovery.py setdiscovery: use iterbatch interface instead of batch 2016-03-01 17:44:41 -05:00
similar.py cleanup: replace uses of util.(md5|sha1|sha256|sha512) with hashlib.\1 2016-06-10 00:12:33 -04:00
simplemerge.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
sshpeer.py i18n: translate abort messages 2016-06-14 11:53:55 +02:00
sshserver.py protocol: declare transport protocol name 2016-11-28 20:46:59 -08:00
sslutil.py sslutil: guard against broken certifi installations (issue5406) 2016-10-19 18:06:14 +02:00
statichttprepo.py manifest: make manifestlog a storecache 2016-10-18 17:33:39 -07:00
statprof.py py3: use unicodes in __slots__ 2016-11-30 23:38:50 +05:30
store.py store: py26 compat, don't use a dict comprehension 2016-10-09 12:58:22 +02:00
streamclone.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
strutil.py strutil: use absolute_import 2015-08-08 20:01:40 -07:00
subrepo.py merge: use labels in subrepo merge 2016-10-08 01:25:28 -07:00
tagmerge.py tagmerge: use absolute_import 2015-08-08 20:10:46 -07:00
tags.py tags: silence hgtagsfnodes reading failures 2016-04-28 15:40:43 -05:00
templatefilters.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
templatekw.py template: provide a termwidth keyword (issue5395) 2016-10-08 02:26:48 -07:00
templater.py templater: use unfiltered changelog to calculate shortest() at constant time 2016-10-25 21:49:30 +09:00
transaction.py transaction: open a file with checkambig=True to avoid file stat ambiguity 2016-09-22 21:52:00 +09:00
treediscovery.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
ui.py py3: avoid use of basestring 2016-11-30 23:51:11 +05:30
unionrepo.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
url.py url: avoid re-issuing incorrect password (issue3210) 2016-07-29 12:46:07 +01:00
util.h parsers: move PyInt aliasing out of util.h 2016-10-09 13:50:53 +02:00
util.py util: limit output chunk size in zlib decompression 2016-11-26 09:07:11 -08:00
verify.py verify: avoid shadowing two variables with a list comprehension 2016-11-10 16:35:54 -05:00
win32.py scmutil: extend termwidth() to return terminal height, renamed to termsize() 2016-10-20 23:09:05 +09:00
windows.py windows: do not replace sys.stdout by winstdout 2016-10-21 00:03:46 +09:00
wireproto.py wireproto: only advertise HTTP-specific capabilities to HTTP peers (BC) 2016-11-28 20:46:42 -08:00
worker.py worker: use os._exit for posix worker in all cases 2016-11-24 01:15:34 +00:00