##// END OF EJS Templates
revset: lookup descendents for negative arguments to ancestor operator...
revset: lookup descendents for negative arguments to ancestor operator Negative offsets to the `~` operator now search for descendents. The search is aborted when a node has more than one child as we do not have a definition for 'nth child'. Optionally we can introduce such a notion and take the nth child ordered by rev number. The current revset language does provides a short operator for ancestor lookup but not for descendents. This gives user a simple revset to move to the previous changeset, e.g. `hg up '.~1'` but not to the 'next' changeset. With this change userse can now use `.~-1` as a shortcut to move to the next changeset. This fits better into allowing users to specify revisions via revsets and avoiding the need for special `hg next` and `hg prev` operations. The alternative to negative offsets is adding a new operator. We do not have many operators in ascii left that do not require bash escaping (',', '_', and '/' come to mind). If we decide that we should add a more convenient short operator such as ('/', e.g. './1') we can later add it and allow ascendents lookup via negative numbers.

File last commit:

r32204:85dc5a25 default
r32699:f75d0aa5 default
Show More
test-install.t
175 lines | 6.3 KiB | text/troff | Tads3Lexer
Pradeepkumar Gayam
tests: unify test-install
r11917 hg debuginstall
$ hg debuginstall
Martin Geisler
debuginstall: lowercase status messages
r16934 checking encoding (ascii)...
Matt Mackall
debuginstall: change showing to checking for consistency and future checking
r20741 checking Python executable (*) (glob)
checking Python version (2.*) (glob)
Adrian Buehlmann
debuginstall: show directory for Python lib...
r17392 checking Python lib (*lib*)... (glob)
Gregory Szorc
commands: print security protocol support in debuginstall...
r30222 checking Python security support (*) (glob)
TLS 1.2 not supported by Python install; network connections lack modern security (?)
SNI not supported by Python install; may have connectivity issues with some servers (?)
timeless
debuginstall: add mercurial version
r29197 checking Mercurial version (*) (glob)
checking Mercurial custom build (*) (glob)
timeless
debuginstall: expose modulepolicy...
r29266 checking module policy (*) (glob)
Martin Geisler
debuginstall: lowercase status messages
r16934 checking installed modules (*mercurial)... (glob)
Gregory Szorc
debuginstall: print compression engine support...
r30462 checking registered compression engines (*zlib*) (glob)
checking available compression engines (*zlib*) (glob)
Gregory Szorc
wireproto: advertise supported media types and compression formats...
r30762 checking available compression engines for wire protocol (*zlib*) (glob)
Martin Geisler
debuginstall: lowercase status messages
r16934 checking templates (*mercurial?templates)... (glob)
timeless
debuginstall: convert to formatter...
r28440 checking default template (*mercurial?templates?map-cmdline.default) (glob)
Sean Farley
tests: python executable should always be globbed...
r28626 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
timeless
debuginstall: convert to formatter...
r28440 checking username (test)
Martin Geisler
debuginstall: lowercase status messages
r16934 no problems detected
Pradeepkumar Gayam
tests: unify test-install
r11917
timeless
debuginstall: convert to formatter...
r28440 hg debuginstall JSON
Matt Harbison
test-install: fix output on Windows...
r28885 $ hg debuginstall -Tjson | sed 's|\\\\|\\|g'
timeless
debuginstall: convert to formatter...
r28440 [
{
Gregory Szorc
debuginstall: print compression engine support...
r30462 "compengines": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
"compenginesavail": ["bz2", "bz2truncated", "none", "zlib"*], (glob)
Gregory Szorc
wireproto: advertise supported media types and compression formats...
r30762 "compenginesserver": [*"zlib"*], (glob)
timeless
debuginstall: convert to formatter...
r28440 "defaulttemplate": "*mercurial?templates?map-cmdline.default", (glob)
"defaulttemplateerror": null,
"defaulttemplatenotfound": "default",
Sean Farley
tests: python executable should always be globbed...
r28626 "editor": "* -c \"import sys; sys.exit(0)\"", (glob)
timeless
debuginstall: convert to formatter...
r28440 "editornotfound": false,
"encoding": "ascii",
"encodingerror": null,
Yuya Nishihara
debuginstall: check C extensions only if they are loadable per policy...
r32204 "extensionserror": null, (no-pure !)
timeless
debuginstall: expose modulepolicy...
r29266 "hgmodulepolicy": "*", (glob)
timeless
debuginstall: convert to formatter...
r28440 "hgmodules": "*mercurial", (glob)
timeless
debuginstall: add mercurial version
r29197 "hgver": "*", (glob)
"hgverextra": "*", (glob)
timeless
debuginstall: convert to formatter...
r28440 "problems": 0,
Danek Duvall
tests: python executable path should always be globbed...
r28544 "pythonexe": "*", (glob)
Sean Farley
tests: python executable should always be globbed...
r28626 "pythonlib": "*", (glob)
Gregory Szorc
commands: print security protocol support in debuginstall...
r30222 "pythonsecurity": [*], (glob)
timeless
debuginstall: convert to formatter...
r28440 "pythonver": "*.*.*", (glob)
"templatedirs": "*mercurial?templates", (glob)
"username": "test",
"usernameerror": null,
"vinotfound": false
}
]
Pradeepkumar Gayam
tests: unify test-install
r11917 hg debuginstall with no username
$ HGUSER= hg debuginstall
Martin Geisler
debuginstall: lowercase status messages
r16934 checking encoding (ascii)...
Matt Mackall
debuginstall: change showing to checking for consistency and future checking
r20741 checking Python executable (*) (glob)
checking Python version (2.*) (glob)
Adrian Buehlmann
debuginstall: show directory for Python lib...
r17392 checking Python lib (*lib*)... (glob)
Gregory Szorc
commands: print security protocol support in debuginstall...
r30222 checking Python security support (*) (glob)
TLS 1.2 not supported by Python install; network connections lack modern security (?)
SNI not supported by Python install; may have connectivity issues with some servers (?)
timeless
debuginstall: add mercurial version
r29197 checking Mercurial version (*) (glob)
checking Mercurial custom build (*) (glob)
timeless
debuginstall: expose modulepolicy...
r29266 checking module policy (*) (glob)
Martin Geisler
debuginstall: lowercase status messages
r16934 checking installed modules (*mercurial)... (glob)
Gregory Szorc
debuginstall: print compression engine support...
r30462 checking registered compression engines (*zlib*) (glob)
checking available compression engines (*zlib*) (glob)
Gregory Szorc
wireproto: advertise supported media types and compression formats...
r30762 checking available compression engines for wire protocol (*zlib*) (glob)
Martin Geisler
debuginstall: lowercase status messages
r16934 checking templates (*mercurial?templates)... (glob)
timeless
debuginstall: convert to formatter...
r28440 checking default template (*mercurial?templates?map-cmdline.default) (glob)
Sean Farley
tests: python executable should always be globbed...
r28626 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
Martin Geisler
debuginstall: lowercase status messages
r16934 checking username...
Matt Mackall
ui: suggest config --edit when no username is set
r20574 no username supplied
Martin Geisler
Merge with stable
r12084 (specify a username in your configuration file)
Pradeepkumar Gayam
tests: unify test-install
r11917 1 problems detected, please check your install!
Matt Mackall
tests: add exit codes to unified tests
r12316 [1]
Matt Harbison
debuginstall: expand the editor path before searching for it (issue4380)...
r24891
path variables are expanded (~ is the same as $TESTTMP)
$ mkdir tools
$ touch tools/testeditor.exe
#if execbit
$ chmod 755 tools/testeditor.exe
#endif
$ hg debuginstall --config ui.editor=~/tools/testeditor.exe
checking encoding (ascii)...
checking Python executable (*) (glob)
checking Python version (*) (glob)
checking Python lib (*lib*)... (glob)
Gregory Szorc
commands: print security protocol support in debuginstall...
r30222 checking Python security support (*) (glob)
TLS 1.2 not supported by Python install; network connections lack modern security (?)
SNI not supported by Python install; may have connectivity issues with some servers (?)
timeless
debuginstall: add mercurial version
r29197 checking Mercurial version (*) (glob)
checking Mercurial custom build (*) (glob)
timeless
debuginstall: expose modulepolicy...
r29266 checking module policy (*) (glob)
Matt Harbison
debuginstall: expand the editor path before searching for it (issue4380)...
r24891 checking installed modules (*mercurial)... (glob)
Gregory Szorc
debuginstall: print compression engine support...
r30462 checking registered compression engines (*zlib*) (glob)
checking available compression engines (*zlib*) (glob)
Gregory Szorc
wireproto: advertise supported media types and compression formats...
r30762 checking available compression engines for wire protocol (*zlib*) (glob)
Matt Harbison
debuginstall: expand the editor path before searching for it (issue4380)...
r24891 checking templates (*mercurial?templates)... (glob)
timeless
debuginstall: convert to formatter...
r28440 checking default template (*mercurial?templates?map-cmdline.default) (glob)
Sean Farley
tests: python executable should always be globbed...
r28626 checking commit editor... (* -c "import sys; sys.exit(0)") (glob)
timeless
debuginstall: convert to formatter...
r28440 checking username (test)
Matt Harbison
debuginstall: expand the editor path before searching for it (issue4380)...
r24891 no problems detected
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383
Matt Harbison
test-install: perform the wix checking on wdir() instead of "."...
r27442 #if test-repo
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 $ cat >> wixxml.py << EOF
> import os, subprocess, sys
> import xml.etree.ElementTree as ET
>
> # MSYS mangles the path if it expands $TESTDIR
> testdir = os.environ['TESTDIR']
> ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'}
>
> def directory(node, relpath):
> '''generator of files in the xml node, rooted at relpath'''
Yuya Nishihara
test-install: embed wix namespace for Python 2.6 compatibility...
r27519 > dirs = node.findall('./{%(wix)s}Directory' % ns)
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 >
> for d in dirs:
> for subfile in directory(d, relpath + d.attrib['Name'] + '/'):
> yield subfile
>
Yuya Nishihara
test-install: embed wix namespace for Python 2.6 compatibility...
r27519 > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns)
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 >
> for f in files:
> yield relpath + f.attrib['Name']
>
> def hgdirectory(relpath):
> '''generator of tracked files, rooted at relpath'''
> hgdir = "%s/../mercurial" % (testdir)
Matt Harbison
test-install: perform the wix checking on wdir() instead of "."...
r27442 > args = ['hg', '--cwd', hgdir, 'files', relpath]
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 > proc = subprocess.Popen(args, stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
> output = proc.communicate()[0]
>
> slash = '/'
> for line in output.splitlines():
> if os.name == 'nt':
> yield line.replace(os.sep, slash)
> else:
> yield line
>
> tracked = [f for f in hgdirectory(sys.argv[1])]
>
> xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1]))
> root = xml.getroot()
Yuya Nishihara
test-install: embed wix namespace for Python 2.6 compatibility...
r27519 > dir = root.find('.//{%(wix)s}DirectoryRef' % ns)
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 >
> installed = [f for f in directory(dir, '')]
>
> print('Not installed:')
> for f in sorted(set(tracked) - set(installed)):
> print(' %s' % f)
>
> print('Not tracked:')
> for f in sorted(set(installed) - set(tracked)):
> print(' %s' % f)
> EOF
$ python wixxml.py help
Not installed:
help/common.txt
Sean Farley
hg-ssh: copy doc string to man page...
r29090 help/hg-ssh.8.txt
Matt Harbison
tests: add coverage to ensure Wix tracks 'help' and 'templates' files...
r27383 help/hg.1.txt
help/hgignore.5.txt
help/hgrc.5.txt
Not tracked:
$ python wixxml.py templates
Not installed:
Not tracked:
Matt Harbison
test-install: perform the wix checking on wdir() instead of "."...
r27442
#endif