sapling/mercurial
Pierre-Yves David 50e7f5d5fd hgweb: explicitly tests for None
Changeset 11e325d162fe removed the mutable default value, but did not explicitly
tested for None. Such implicit testing can introduce semantic and performance
issue. We move to an explicit testing for None as recommended by PEP8:

https://www.python.org/dev/peps/pep-0008/#programming-recommendations
2017-03-15 15:11:04 -07: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 help: fix layout of pre-formatted text 2017-03-09 12:55:48 +09:00
hgweb hgweb: explicitly tests for None 2017-03-15 15:11:04 -07:00
httpclient httpclient: don't use mutable default argument value 2017-03-14 23:49:25 -07:00
pure lazymanifest: write a more efficient, pypy friendly version of lazymanifest 2016-09-12 13:37:14 +02:00
templates hgweb: support Content Security Policy 2017-01-10 23:37:08 -08:00
__init__.py py3: add "b" prefix to string literals related to module policy 2017-03-13 04:06:36 +09:00
ancestor.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
archival.py vfs: use 'vfs' module directly in 'mercurial.archival' 2017-03-02 13:30:28 +01:00
base85.c base85: fix comparison of an int and a long 2015-08-21 14:29:42 -04:00
bdiff_module.c bdiff: include util.h 2016-10-13 13:27:14 +02:00
bdiff.c bdiff: split bdiff into cpy-aware and cpy-agnostic part 2016-07-13 10:46:26 +02: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: abort 'push -B .' when no active bookmark 2016-06-13 23:50:26 +02:00
branchmap.py branchmap: fix python 2.6 by using util.buffer() instead of passing bytearray 2017-03-12 19:47:51 -04:00
bundle2.py bundle2: fix assertion that 'compression' hasn't been set 2017-02-13 11:43:12 -08:00
bundlerepo.py py3: use bytearray() instead of array('c', ...) constructions 2017-03-12 03:32:21 -04:00
byterange.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
changegroup.py revlog: add 'raw' argument to revision and _addrevision 2017-01-05 17:16:07 +00:00
changelog.py revlog: make 'storedeltachains' a "public" attribute 2016-10-14 02:25:08 +02:00
chgserver.py chgserver: add the setprocname interface 2017-01-11 07:36:48 +08:00
cmdutil.py cmdutil: directly use repo.vfs.join 2017-03-08 16:53:09 -08:00
color.py color: load 'colortable' from extension using an 'extraloader' 2016-11-18 18:18:15 +01:00
commands.py py3: convert opts back to bytes for status 2017-03-16 10:10:00 +05:30
commandserver.py commandserver: update comment about setpgid 2016-07-18 15:59:08 +01:00
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: avoid using a mutable default 2017-03-12 12:56:12 -07:00
context.py context: don't use mutable default argument value 2017-03-12 21:50:42 -07:00
copies.py merge: avoid superfluous filemerges when grafting through renames (issue5407) 2016-10-25 21:01:53 +02:00
crecord.py crecord: add an experimental option for space key to move cursor down 2017-01-08 10:08:29 +08: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 debuglabelcomplete: fix to call debugnamecomplete in new location 2017-03-14 13:10:30 -07:00
demandimport.py demandimport: do not raise ImportError for unknown item in fromlist 2016-12-19 22:46:00 +09: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 dirstate: use list comprehension to get a list of keys 2017-03-16 09:00:27 +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 dispatch: enforce bytes when converting boolean flags to config items 2017-03-03 14:43:27 -05: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 shelve: make unshelve be able to abort in any case 2016-07-13 16:16:18 +01:00
exchange.py getbundle: cleanly handle remote abort during getbundle 2017-02-10 18:17:20 +01:00
exewrapper.c exewrapper: add .dll to LoadLibrary() argument 2016-04-27 09:23:39 -07:00
extensions.py extensions: tapdance to get reasonable import error formatting 2017-03-03 14:08:02 -05:00
fancyopts.py flags: allow specifying --no-boolean-flag on the command line (BC) 2016-09-13 22:57:57 -04:00
filelog.py revlog: merge hash checking subfunctions 2016-12-13 14:21:36 +00:00
filemerge.py filemerge: don't use mutable default argument value 2016-12-26 16:54:33 -07:00
fileset.py help: clarify quotes are needed for filesets.size expressions 2016-09-21 16:33:37 +00:00
formatter.py formatter: support json formatting of long type 2017-03-13 18:31:29 -07: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: update help.internalstable for new censor docs 2017-03-10 17:37:39 -05:00
hg.py hg-mod: directly use repo.vfs.join 2017-03-08 16:53:24 -08:00
hook.py hook: give exthooks tags for blocking time 2017-03-06 03:09:15 -08:00
httpconnection.py httpconnection: rename config to groups 2017-03-09 20:53:14 -08:00
httppeer.py httppeer: advertise and support application/mercurial-0.2 2016-12-24 15:22:18 -07: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: switch from thread to threading module 2016-07-01 19:17:16 +05:30
localrepo.py localrepo: use self.wvfs.islink directly 2016-08-05 14:19:31 +02:00
lock.py lock: do not encode result of gethostname on Python 2 2017-03-12 16:26:34 -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: ensure paths are bytes (not str) in pure parser 2017-03-12 03:31:54 -04:00
match.py match: explicitly tests for None 2017-03-15 15:08:45 -07:00
mdiff.py patch: add similarity config knob in experimental section 2017-01-09 10:51:44 -08:00
merge.py merge: check current wc branch for 'nothing to merge', not its p1 2017-03-12 16:41:46 -07:00
mergeutil.py checkunresolved: move to new package to help avoid import cycles 2016-11-21 21:31:45 -05:00
minirst.py minirst: use bytes.strip instead of str.strip 2017-03-12 22:46:57 +05:30
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 node: use byte literals to construct nullid and wdirid 2016-03-12 14:04:57 -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 parser: use %d instead of %s for interpolating error position 2017-03-12 00:44:59 -05:00
parsers.c parsers: handle refcounting of "parents" consistently 2017-03-13 17:49:13 -07:00
patch.py patch: check length of git index header only if integer is specified 2017-01-15 16:33:15 +09:00
pathencode.c pathencode: use assert() for PyBytes_Check() 2016-10-13 21:42:11 +02:00
pathutil.py util: rename checkcase() to fscasesensitive() (API) 2016-08-30 09:22:53 -07:00
peer.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
phases.py phases: explicitly evaluate list returned by map 2017-03-11 20:53:20 -05:00
policy.py py3: add "b" prefix to string literals related to module policy 2017-03-13 04:06:36 +09:00
posix.py merge with stable 2017-01-04 14:52:59 -05:00
profiling.py py3: replace pycompat.getenv with encoding.environ.get 2017-01-15 13:17:05 +05:30
progress.py progress: stop excessive clearing (issue4801) 2016-05-06 17:53:06 -05: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
pycompat.py py3: make py3 compat.iterbytestr simpler and faster 2017-03-15 09:32:18 -07:00
registrar.py registrar: make format strings unicodes and not bytes 2016-10-07 08:32:18 -04:00
repair.py repair: directly use repo.vfs.join 2017-03-08 16:53:39 -08:00
repoview.py repoview: specify setattr values as native strings 2017-03-12 00:48:06 -05:00
revlog.py revlog: use bytes() instead of str() to get data from memoryview 2017-03-12 15:27:02 -04:00
revset.py revset: prevent using outgoing() and remote() in hgweb session (BC) 2017-01-20 21:33:18 +09:00
revsetlang.py py3: fix slicing of bytes in revset.formatspec() 2017-03-12 17:16:43 -07:00
scmposix.py smcposix: pass unicode as first argument to array.array 2017-03-12 22:27:53 +05:30
scmutil.py scmutil: make function name bytes in class filecache 2017-03-16 06:32:33 +05:30
scmwindows.py py3: conditionalize _winreg import 2016-08-10 04:35:44 +05:30
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 similar: remove caching from the module level 2017-01-13 11:42:36 -08:00
simplemerge.py vfs: use 'vfs' module directly in 'mercurial.simplemerge' 2017-03-02 13:30:58 +01:00
smartset.py smartset: reorder initialization of baseset in more intuitive way 2017-02-18 17:37:52 +09:00
sshpeer.py sshpeer: set a blockedtag when starting ssh 2017-03-06 03:25:09 -08:00
sshserver.py wireproto: compress data from a generator 2016-10-16 11:10:21 -07:00
sslutil.py sslutil: issue warning when [hostfingerprint] is used 2017-03-09 20:33:29 -08:00
statichttprepo.py manifest: make manifestlog a storecache 2016-10-18 17:33:39 -07:00
statprof.py statprof: require input file 2017-01-18 22:45:07 -08:00
store.py store: fix many single-byte ops to use slicing in _auxencode 2017-03-12 00:50:44 -05:00
streamclone.py streamclone: clear caches after writing changes into files for visibility 2016-09-12 03:06:29 +09:00
subrepo.py subrepo: directly use repo.vfs.join 2017-03-08 16:53:47 -08:00
tagmerge.py tagmerge: use 'wvfs' instead of 'wfile' 2017-03-15 00:28:58 -07:00
tags.py py3: drop unused aliases to array.array which are replaced with bytearray 2017-03-12 11:47:02 -07:00
templatefilters.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
templatekw.py templater: add '{envvars}' to access environment variables 2017-01-17 23:12:54 -05: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
txnutil.py txnutil: factor out the logic to read file in according to HG_PENDING 2017-02-21 01:20:59 +09:00
ui.py ui: portably bytestring-ify url object 2017-03-12 01:59:23 -05:00
unionrepo.py revlog: add 'raw' argument to revision and _addrevision 2017-01-05 17:16:07 +00:00
url.py py3: replace pycompat.getenv with encoding.environ.get 2017-01-15 13:17:05 +05:30
util.h parsers: move PyInt aliasing out of util.h 2016-10-09 13:50:53 +02:00
util.py py3: use iter() instead of iterkeys() 2017-03-16 04:53:23 +05:30
verify.py verify: specify unit for ui.progress when checking files 2016-03-11 20:18:41 +08:00
vfs.py vfs: extract 'vfs' class and related code to a new 'vfs' module (API) 2017-03-01 11:00:12 +01:00
win32.py py3: use pycompat.getcwd instead of os.getcwd 2016-12-22 01:54:17 +05:30
windows.py chgserver: extract utility to bind unix domain socket to long path 2016-05-21 16:52:04 +09:00
wireproto.py wireproto: properly report server Abort during 'getbundle' 2017-02-10 18:20:58 +01:00
worker.py worker: flush messages written by child processes before exit 2017-02-25 12:48:50 +09:00