##// END OF EJS Templates
merge with stable
Martin Geisler -
r13234:0935ff76 merge default
parent child Browse files
Show More
@@ -991,10 +991,11 b' The full set of options is:'
991 third-party tools like email notification hooks can construct
991 third-party tools like email notification hooks can construct
992 URLs. Example: ``http://hgserver/repos/``.
992 URLs. Example: ``http://hgserver/repos/``.
993 ``cacerts``
993 ``cacerts``
994 Path to file containing a list of PEM encoded certificate authority
994 Path to file containing a list of PEM encoded certificate
995 certificates. If specified on the client, then it will verify the identity
995 authority certificates. Environment variables and ``~user``
996 of remote HTTPS servers with these certificates. The form must be
996 constructs are expanded in the filename. If specified on the
997 as follows::
997 client, then it will verify the identity of remote HTTPS servers
998 with these certificates. The form must be as follows::
998
999
999 -----BEGIN CERTIFICATE-----
1000 -----BEGIN CERTIFICATE-----
1000 ... (certificate in base64 PEM encoding) ...
1001 ... (certificate in base64 PEM encoding) ...
@@ -1880,7 +1880,7 b' def help_(ui, name=None, with_version=Fa'
1880 msg = _('use "hg help" for the full list of commands '
1880 msg = _('use "hg help" for the full list of commands '
1881 'or "hg -v" for details')
1881 'or "hg -v" for details')
1882 elif aliases:
1882 elif aliases:
1883 msg = _('use "hg -v help%s" to show aliases and '
1883 msg = _('use "hg -v help%s" to show builtin aliases and '
1884 'global options') % (name and " " + name or "")
1884 'global options') % (name and " " + name or "")
1885 else:
1885 else:
1886 msg = _('use "hg -v help %s" to show global options') % name
1886 msg = _('use "hg -v help %s" to show global options') % name
@@ -505,7 +505,7 b' class dirstate(object):'
505 i, j = 0, 0
505 i, j = 0, 0
506 while i < len(files) and j < len(subrepos):
506 while i < len(files) and j < len(subrepos):
507 subpath = subrepos[j] + "/"
507 subpath = subrepos[j] + "/"
508 if not files[i].startswith(subpath):
508 if files[i] < subpath:
509 i += 1
509 i += 1
510 continue
510 continue
511 while files and files[i].startswith(subpath):
511 while files and files[i].startswith(subpath):
@@ -549,6 +549,6 b' def remoteui(src, opts):'
549 dst.setconfig(sect, key, val)
549 dst.setconfig(sect, key, val)
550 v = src.config('web', 'cacerts')
550 v = src.config('web', 'cacerts')
551 if v:
551 if v:
552 dst.setconfig('web', 'cacerts', v)
552 dst.setconfig('web', 'cacerts', util.expandpath(v))
553
553
554 return dst
554 return dst
@@ -530,6 +530,8 b' if has_https:'
530 def connect(self):
530 def connect(self):
531 if hasattr(self, 'ui'):
531 if hasattr(self, 'ui'):
532 cacerts = self.ui.config('web', 'cacerts')
532 cacerts = self.ui.config('web', 'cacerts')
533 if cacerts:
534 cacerts = util.expandpath(cacerts)
533 else:
535 else:
534 cacerts = None
536 cacerts = None
535
537
@@ -347,7 +347,7 b' Testing -h/--help:'
347 hgweb Configuring hgweb
347 hgweb Configuring hgweb
348 glossary Glossary
348 glossary Glossary
349
349
350 use "hg -v help" to show aliases and global options
350 use "hg -v help" to show builtin aliases and global options
351
351
352 $ hg --help
352 $ hg --help
353 Mercurial Distributed SCM
353 Mercurial Distributed SCM
@@ -423,7 +423,7 b' Testing -h/--help:'
423 hgweb Configuring hgweb
423 hgweb Configuring hgweb
424 glossary Glossary
424 glossary Glossary
425
425
426 use "hg -v help" to show aliases and global options
426 use "hg -v help" to show builtin aliases and global options
427
427
428 Not tested: --debugger
428 Not tested: --debugger
429
429
@@ -118,7 +118,7 b' Short help:'
118 hgweb Configuring hgweb
118 hgweb Configuring hgweb
119 glossary Glossary
119 glossary Glossary
120
120
121 use "hg -v help" to show aliases and global options
121 use "hg -v help" to show builtin aliases and global options
122
122
123 $ hg -q help
123 $ hg -q help
124 add add the specified files on the next commit
124 add add the specified files on the next commit
@@ -416,7 +416,7 b' Test ambiguous command help'
416 add add the specified files on the next commit
416 add add the specified files on the next commit
417 addremove add all new files, delete all missing files
417 addremove add all new files, delete all missing files
418
418
419 use "hg -v help ad" to show aliases and global options
419 use "hg -v help ad" to show builtin aliases and global options
420
420
421 Test command without options
421 Test command without options
422
422
@@ -716,7 +716,7 b' Test that default list of commands omits'
716 hgweb Configuring hgweb
716 hgweb Configuring hgweb
717 glossary Glossary
717 glossary Glossary
718
718
719 use "hg -v help" to show aliases and global options
719 use "hg -v help" to show builtin aliases and global options
720
720
721 Test list of commands with command with no help text
721 Test list of commands with command with no help text
722
722
@@ -727,7 +727,7 b' Test list of commands with command with '
727
727
728 nohelp (no help text available)
728 nohelp (no help text available)
729
729
730 use "hg -v help helpext" to show aliases and global options
730 use "hg -v help helpext" to show builtin aliases and global options
731
731
732 Test a help topic
732 Test a help topic
733
733
@@ -154,11 +154,12 b' cacert configured in local repo'
154 no changes found
154 no changes found
155 $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc
155 $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc
156
156
157 cacert configured globally
157 cacert configured globally, also testing expansion of environment
158 variables in the filename
158
159
159 $ echo "[web]" >> $HGRCPATH
160 $ echo "[web]" >> $HGRCPATH
160 $ echo "cacerts=`pwd`/pub.pem" >> $HGRCPATH
161 $ echo 'cacerts=$P/pub.pem' >> $HGRCPATH
161 $ hg -R copy-pull pull
162 $ P=`pwd` hg -R copy-pull pull
162 pulling from https://localhost:$HGPORT/
163 pulling from https://localhost:$HGPORT/
163 searching for changes
164 searching for changes
164 no changes found
165 no changes found
@@ -77,7 +77,7 b' help'
77 qunapplied print the patches not yet applied
77 qunapplied print the patches not yet applied
78 strip strip changesets and all their descendants from the repository
78 strip strip changesets and all their descendants from the repository
79
79
80 use "hg -v help mq" to show aliases and global options
80 use "hg -v help mq" to show builtin aliases and global options
81
81
82 $ hg init a
82 $ hg init a
83 $ cd a
83 $ cd a
@@ -656,3 +656,22 b' Try to push from the other side'
656 adding manifests
656 adding manifests
657 adding file changes
657 adding file changes
658 added 1 changesets with 1 changes to 1 files
658 added 1 changesets with 1 changes to 1 files
659
660 Check status of files when none of them belong to the first
661 subrepository:
662
663 $ hg init subrepo-status
664 $ cd subrepo-status
665 $ hg init subrepo-1
666 $ hg init subrepo-2
667 $ cd subrepo-2
668 $ touch file
669 $ hg add file
670 $ cd ..
671 $ echo subrepo-1 = subrepo-1 > .hgsub
672 $ echo subrepo-2 = subrepo-2 >> .hgsub
673 $ hg add .hgsub
674 $ hg ci -m 'Added subrepos'
675 committing subrepository subrepo-1
676 committing subrepository subrepo-2
677 $ hg st subrepo-2/file
General Comments 0
You need to be logged in to leave comments. Login now