##// END OF EJS Templates
merge with crew-stable
Martin Geisler -
r9142:63cfacb7 merge default
parent child Browse files
Show More
@@ -1,6 +1,8 b''
1 import sys, textwrap
1 import os, sys, textwrap
2 2 # import from the live mercurial repo
3 3 sys.path.insert(0, "..")
4 # fall back to pure modules if required C extensions are not available
5 sys.path.append(os.path.join('..', 'mercurial', 'pure'))
4 6 from mercurial import demandimport; demandimport.enable()
5 7 from mercurial.commands import table, globalopts
6 8 from mercurial.i18n import gettext, _
@@ -12,22 +12,28 b' SYNOPSIS'
12 12 --------
13 13
14 14 The Mercurial system uses a file called `.hgignore` in the root
15 directory of a repository to control its behavior when it finds files
16 that it is not currently managing.
15 directory of a repository to control its behavior when it searches
16 for files that it is not currently tracking.
17 17
18 18 DESCRIPTION
19 19 -----------
20 20
21 Mercurial ignores every unmanaged file that matches any pattern in an
22 ignore file. The patterns in an ignore file do not apply to files
23 managed by Mercurial. To control Mercurial's handling of files that it
24 manages, see the hg(1) man page. Look for the "-I" and "-X" options.
21 An untracked file is ignored if its path relative to the repository
22 root directory, or any prefix path of that path, is matched against
23 any pattern in `.hgignore`.
25 24
26 In addition, a Mercurial configuration file can point to a set of
25 For example, say we have an an untracked file, `file.c`, at
26 `a/b/file.c` inside our repository. Mercurial will ignore `file.c` if
27 any pattern in `.hgignore` matches `a/b/file.c`, `a/b` or `a`.
28
29 In addition, a Mercurial configuration file can reference a set of
27 30 per-user or global ignore files. See the hgrc(5) man page for details
28 31 of how to configure these files. Look for the "ignore" entry in the
29 32 "ui" section.
30 33
34 To control Mercurial's handling of files that it manages, see the
35 hg(1) man page. Look for the "-I" and "-X" options.
36
31 37 SYNTAX
32 38 ------
33 39
@@ -1473,7 +1473,10 b' def help_(ui, name=None, with_version=Fa'
1473 1473 f = f.lstrip("^")
1474 1474 if not ui.debugflag and f.startswith("debug"):
1475 1475 continue
1476 doc = gettext(e[0].__doc__)
1476 doc = e[0].__doc__
1477 if doc and 'DEPRECATED' in doc and not ui.verbose:
1478 continue
1479 doc = gettext(doc)
1477 1480 if not doc:
1478 1481 doc = _("(no help text available)")
1479 1482 h[f] = doc.splitlines()[0].rstrip()
@@ -248,6 +248,8 b" if sys.platform == 'linux2' and os.uname"
248 248 datafiles = []
249 249 for root in ('templates', 'i18n'):
250 250 for dir, dirs, files in os.walk(root):
251 dirs[:] = [x for x in dirs if not x.startswith('.')]
252 files = [x for x in files if not x.startswith('.')]
251 253 datafiles.append((os.path.join('mercurial', dir),
252 254 [os.path.join(dir, file_) for file_ in files]))
253 255
@@ -73,11 +73,25 b' def debugfoobar(ui, repo, *args, **opts)'
73 73 "yet another debug command"
74 74 pass
75 75
76 cmdtable = {"debugfoobar": (debugfoobar, (), "hg debugfoobar")}
76 def foo(ui, repo, *args, **opts):
77 """yet another foo command
78
79 This command has been DEPRECATED since forever.
80 """
81 pass
82
83 cmdtable = {
84 "debugfoobar": (debugfoobar, (), "hg debugfoobar"),
85 "foo": (foo, (), "hg foo")
86 }
77 87 EOF
78 88 debugpath=`pwd`/debugextension.py
79 89 echo "debugextension = $debugpath" >> $HGRCPATH
90 echo "% hg help"
80 91 hg help debugextension
92 echo "% hg help --verbose"
93 hg --verbose help debugextension
94 echo "% hg help --debug"
81 95 hg --debug help debugextension
82 96 echo 'debugextension = !' >> $HGRCPATH
83 97
@@ -19,15 +19,47 b' Foo'
19 19 empty extension - empty cmdtable
20 20
21 21 no commands defined
22 % hg help
22 23 debugextension extension - only debugcommands
23 24
24 25 no commands defined
26 % hg help --verbose
27 debugextension extension - only debugcommands
28
29 list of commands:
30
31 foo:
32 yet another foo command
33
34 enabled extensions:
35
36 debugextension only debugcommands
37
38 global options:
39 -R --repository repository root directory or symbolic path name
40 --cwd change working directory
41 -y --noninteractive do not prompt, assume 'yes' for any required answers
42 -q --quiet suppress output
43 -v --verbose enable additional output
44 --config set/override config option
45 --debug enable debugging output
46 --debugger start debugger
47 --encoding set the charset encoding (default: ascii)
48 --encodingmode set the charset encoding mode (default: strict)
49 --traceback print traceback on exception
50 --time time how long the command takes
51 --profile print command execution profile
52 --version output version information and exit
53 -h --help display help and exit
54 % hg help --debug
25 55 debugextension extension - only debugcommands
26 56
27 57 list of commands:
28 58
29 59 debugfoobar:
30 60 yet another debug command
61 foo:
62 yet another foo command
31 63
32 64 enabled extensions:
33 65
General Comments 0
You need to be logged in to leave comments. Login now