##// END OF EJS Templates
mdiff: add a hunkinrange helper function...
mdiff: add a hunkinrange helper function This factors out hunk filtering logic by line range that is similar in mdiff.blocksinrange() and hgweb.webutil.diffs().

File last commit:

r31808:ca3b4a2b default
r31808:ca3b4a2b default
Show More
test-doctest.py
56 lines | 1.6 KiB | text/x-python | PythonLexer
Mads Kiilerich
tests: fix readline escape characters in output for test-doctest.py
r7041 # this is hack to make sure no escape characters are inserted into the output
Pulkit Goyal
tests: make test-doctest use absolute_import
r28933
from __future__ import absolute_import
import doctest
import os
import sys
Yuya Nishihara
tests: allow running doctests selectively on Python 3...
r31438
ispy3 = (sys.version_info[0] >= 3)
Patrick Mezard
test-doctest: remove TERM env variable only if it's there
r7078 if 'TERM' in os.environ:
Dirkjan Ochtman
clean up trailing spaces
r7184 del os.environ['TERM']
Benoit Boissinot
[extendedchangelog] encode/decode function...
r3232
Yuya Nishihara
tests: allow running doctests selectively on Python 3...
r31438 # TODO: migrate doctests to py3 and enable them on both versions
def testmod(name, optionflags=0, testtarget=None, py2=True, py3=False):
if not (not ispy3 and py2 or ispy3 and py3):
return
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 __import__(name)
mod = sys.modules[name]
if testtarget is not None:
mod = getattr(mod, testtarget)
doctest.testmod(mod, optionflags=optionflags)
Sune Foldager
ui: add configint function and tests
r14171
Augie Fackler
changegroup: introduce cg3, which has support for exchanging treemanifests...
r27432 testmod('mercurial.changegroup')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.changelog')
Yuya Nishihara
color: insert color code after every "\e[0m" (issue5413)...
r31518 testmod('mercurial.color')
Jun Wu
ui: move configlist parser to config.py...
r31481 testmod('mercurial.config')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.dagparser', optionflags=doctest.NORMALIZE_WHITESPACE)
testmod('mercurial.dispatch')
testmod('mercurial.encoding')
Yuya Nishihara
formatter: add overview of API and example as doctest
r30560 testmod('mercurial.formatter')
Yuya Nishihara
clone: add doctest for default destination
r20799 testmod('mercurial.hg')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.hgweb.hgwebdir_mod')
testmod('mercurial.match')
Denis Laxalde
mdiff: add a hunkinrange helper function...
r31808 testmod('mercurial.mdiff')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.minirst')
Siddharth Agarwal
patch.pathtransform: add doctests...
r24243 testmod('mercurial.patch')
FUJIWARA Katsunori
subrepo: normalize path in the specific way for problematic encodings...
r21568 testmod('mercurial.pathutil')
Yuya Nishihara
parser: add helper to reduce nesting of chained infix operations...
r25306 testmod('mercurial.parser')
Yuya Nishihara
pycompat: add bytestr wrapper which mostly acts as a Python 2 str...
r31439 testmod('mercurial.pycompat', py3=True)
Yuya Nishihara
revset: split language services to revsetlang module (API)...
r31024 testmod('mercurial.revsetlang')
Yuya Nishihara
smartset: move set classes and related functions from revset module (API)...
r30881 testmod('mercurial.smartset')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.store')
Siddharth Agarwal
subrepo: factor out Git version check to add doctests...
r20840 testmod('mercurial.subrepo')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.templatefilters')
Yuya Nishihara
templater: introduce one-pass parsing of nested template strings...
r25783 testmod('mercurial.templater')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('mercurial.ui')
testmod('mercurial.url')
testmod('mercurial.util')
testmod('mercurial.util', testtarget='platform')
Eugene Baranov
convert: use 'default' for specifying branch name in branchmap (issue4753)...
r25805 testmod('hgext.convert.convcmd')
Mads Kiilerich
tests: make doctest test runner less verbose
r20047 testmod('hgext.convert.cvsps')
Mads Kiilerich
convert: readability and test of rpairs function
r20048 testmod('hgext.convert.filemap')
Eugene Baranov
convert: unescape Perforce-escaped special characters in filenames
r25788 testmod('hgext.convert.p4')
Mads Kiilerich
convert: make subversion revsplit more stable when meeting revisions without @...
r20419 testmod('hgext.convert.subversion')
Mads Kiilerich
mq: refactor patchheader header ordering to match export (BC)...
r22546 testmod('hgext.mq')