Show More
@@ -152,6 +152,8 b' from mercurial.i18n import _' | |||||
152 | from mercurial import util, match |
|
152 | from mercurial import util, match | |
153 | import getpass, urllib |
|
153 | import getpass, urllib | |
154 |
|
154 | |||
|
155 | testedwith = 'internal' | |||
|
156 | ||||
155 | def _getusers(ui, group): |
|
157 | def _getusers(ui, group): | |
156 |
|
158 | |||
157 | # First, try to use group definition from section [acl.groups] |
|
159 | # First, try to use group definition from section [acl.groups] |
@@ -282,6 +282,8 b' from mercurial.node import short' | |||||
282 | from mercurial import cmdutil, mail, templater, util |
|
282 | from mercurial import cmdutil, mail, templater, util | |
283 | import re, time, urlparse, xmlrpclib |
|
283 | import re, time, urlparse, xmlrpclib | |
284 |
|
284 | |||
|
285 | testedwith = 'internal' | |||
|
286 | ||||
285 | class bzaccess(object): |
|
287 | class bzaccess(object): | |
286 | '''Base class for access to Bugzilla.''' |
|
288 | '''Base class for access to Bugzilla.''' | |
287 |
|
289 | |||
@@ -910,4 +912,3 b' def hook(ui, repo, hooktype, node=None, ' | |||||
910 | bz.notify(bugs, util.email(ctx.user())) |
|
912 | bz.notify(bugs, util.email(ctx.user())) | |
911 | except Exception, e: |
|
913 | except Exception, e: | |
912 | raise util.Abort(_('Bugzilla error: %s') % e) |
|
914 | raise util.Abort(_('Bugzilla error: %s') % e) | |
913 |
|
@@ -18,6 +18,7 b' from mercurial import cmdutil' | |||||
18 | from mercurial.commands import templateopts |
|
18 | from mercurial.commands import templateopts | |
19 | from mercurial.i18n import _ |
|
19 | from mercurial.i18n import _ | |
20 |
|
20 | |||
|
21 | testedwith = 'internal' | |||
21 |
|
22 | |||
22 | def children(ui, repo, file_=None, **opts): |
|
23 | def children(ui, repo, file_=None, **opts): | |
23 | """show the children of the given or working directory revision |
|
24 | """show the children of the given or working directory revision |
@@ -13,6 +13,8 b' from mercurial import patch, cmdutil, sc' | |||||
13 | import os |
|
13 | import os | |
14 | import time, datetime |
|
14 | import time, datetime | |
15 |
|
15 | |||
|
16 | testedwith = 'internal' | |||
|
17 | ||||
16 | def maketemplater(ui, repo, tmpl): |
|
18 | def maketemplater(ui, repo, tmpl): | |
17 | tmpl = templater.parsestring(tmpl, quoted=False) |
|
19 | tmpl = templater.parsestring(tmpl, quoted=False) | |
18 | try: |
|
20 | try: |
@@ -105,6 +105,8 b' import os' | |||||
105 | from mercurial import commands, dispatch, extensions, ui as uimod, util |
|
105 | from mercurial import commands, dispatch, extensions, ui as uimod, util | |
106 | from mercurial.i18n import _ |
|
106 | from mercurial.i18n import _ | |
107 |
|
107 | |||
|
108 | testedwith = 'internal' | |||
|
109 | ||||
108 | # start and stop parameters for effects |
|
110 | # start and stop parameters for effects | |
109 | _effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33, |
|
111 | _effects = {'none': 0, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33, | |
110 | 'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37, 'bold': 1, |
|
112 | 'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37, 'bold': 1, |
@@ -13,6 +13,8 b' import subversion' | |||||
13 | from mercurial import commands, templatekw |
|
13 | from mercurial import commands, templatekw | |
14 | from mercurial.i18n import _ |
|
14 | from mercurial.i18n import _ | |
15 |
|
15 | |||
|
16 | testedwith = 'internal' | |||
|
17 | ||||
16 | # Commands definition was moved elsewhere to ease demandload job. |
|
18 | # Commands definition was moved elsewhere to ease demandload job. | |
17 |
|
19 | |||
18 | def convert(ui, src, dest=None, revmapfile=None, **opts): |
|
20 | def convert(ui, src, dest=None, revmapfile=None, **opts): |
@@ -94,6 +94,8 b' from mercurial.i18n import _' | |||||
94 | from mercurial import util, config, extensions, match, error |
|
94 | from mercurial import util, config, extensions, match, error | |
95 | import re, os |
|
95 | import re, os | |
96 |
|
96 | |||
|
97 | testedwith = 'internal' | |||
|
98 | ||||
97 | # Matches a lone LF, i.e., one that is not part of CRLF. |
|
99 | # Matches a lone LF, i.e., one that is not part of CRLF. | |
98 | singlelf = re.compile('(^|[^\r])\n') |
|
100 | singlelf = re.compile('(^|[^\r])\n') | |
99 | # Matches a single EOL which can either be a CRLF where repeated CR |
|
101 | # Matches a single EOL which can either be a CRLF where repeated CR |
@@ -66,6 +66,8 b' from mercurial.node import short, nullid' | |||||
66 | from mercurial import scmutil, scmutil, util, commands, encoding |
|
66 | from mercurial import scmutil, scmutil, util, commands, encoding | |
67 | import os, shlex, shutil, tempfile, re |
|
67 | import os, shlex, shutil, tempfile, re | |
68 |
|
68 | |||
|
69 | testedwith = 'internal' | |||
|
70 | ||||
69 | def snapshot(ui, repo, files, node, tmproot): |
|
71 | def snapshot(ui, repo, files, node, tmproot): | |
70 | '''snapshot files as of some revision |
|
72 | '''snapshot files as of some revision | |
71 | if not using snapshot, -I/-X does not work and recursive diff |
|
73 | if not using snapshot, -I/-X does not work and recursive diff |
@@ -12,6 +12,8 b' from mercurial.node import nullid, short' | |||||
12 | from mercurial import commands, cmdutil, hg, util, error |
|
12 | from mercurial import commands, cmdutil, hg, util, error | |
13 | from mercurial.lock import release |
|
13 | from mercurial.lock import release | |
14 |
|
14 | |||
|
15 | testedwith = 'internal' | |||
|
16 | ||||
15 | def fetch(ui, repo, source='default', **opts): |
|
17 | def fetch(ui, repo, source='default', **opts): | |
16 | '''pull changes from a remote repository, merge new changes if needed. |
|
18 | '''pull changes from a remote repository, merge new changes if needed. | |
17 |
|
19 |
@@ -12,6 +12,7 b' from mercurial.i18n import _' | |||||
12 |
|
12 | |||
13 | cmdtable = {} |
|
13 | cmdtable = {} | |
14 | command = cmdutil.command(cmdtable) |
|
14 | command = cmdutil.command(cmdtable) | |
|
15 | testedwith = 'internal' | |||
15 |
|
16 | |||
16 | class gpg(object): |
|
17 | class gpg(object): | |
17 | def __init__(self, path, key=None): |
|
18 | def __init__(self, path, key=None): | |
@@ -286,4 +287,3 b' def node2txt(repo, node, ver):' | |||||
286 | return "%s\n" % hgnode.hex(node) |
|
287 | return "%s\n" % hgnode.hex(node) | |
287 | else: |
|
288 | else: | |
288 | raise util.Abort(_("unknown signature version")) |
|
289 | raise util.Abort(_("unknown signature version")) | |
289 |
|
@@ -20,6 +20,7 b' from mercurial import hg, util, graphmod' | |||||
20 |
|
20 | |||
21 | cmdtable = {} |
|
21 | cmdtable = {} | |
22 | command = cmdutil.command(cmdtable) |
|
22 | command = cmdutil.command(cmdtable) | |
|
23 | testedwith = 'internal' | |||
23 |
|
24 | |||
24 | ASCIIDATA = 'ASC' |
|
25 | ASCIIDATA = 'ASC' | |
25 |
|
26 |
@@ -48,6 +48,7 b' import email.Parser' | |||||
48 |
|
48 | |||
49 | import socket, xmlrpclib |
|
49 | import socket, xmlrpclib | |
50 | from xml.sax import saxutils |
|
50 | from xml.sax import saxutils | |
|
51 | testedwith = 'internal' | |||
51 |
|
52 | |||
52 | socket_timeout = 30 # seconds |
|
53 | socket_timeout = 30 # seconds | |
53 | if util.safehasattr(socket, 'setdefaulttimeout'): |
|
54 | if util.safehasattr(socket, 'setdefaulttimeout'): |
@@ -39,6 +39,8 b' from mercurial import commands, util, pa' | |||||
39 | from mercurial.node import nullid, nullrev, short |
|
39 | from mercurial.node import nullid, nullrev, short | |
40 | from mercurial.i18n import _ |
|
40 | from mercurial.i18n import _ | |
41 |
|
41 | |||
|
42 | testedwith = 'internal' | |||
|
43 | ||||
42 | def difftree(ui, repo, node1=None, node2=None, *files, **opts): |
|
44 | def difftree(ui, repo, node1=None, node2=None, *files, **opts): | |
43 | """diff trees from two commits""" |
|
45 | """diff trees from two commits""" | |
44 | def __difftree(repo, node1, node2, files=[]): |
|
46 | def __difftree(repo, node1, node2, files=[]): |
@@ -24,6 +24,7 b" The default is 'colorful'." | |||||
24 | import highlight |
|
24 | import highlight | |
25 | from mercurial.hgweb import webcommands, webutil, common |
|
25 | from mercurial.hgweb import webcommands, webutil, common | |
26 | from mercurial import extensions, encoding |
|
26 | from mercurial import extensions, encoding | |
|
27 | testedwith = 'internal' | |||
27 |
|
28 | |||
28 | def filerevision_highlight(orig, web, tmpl, fctx): |
|
29 | def filerevision_highlight(orig, web, tmpl, fctx): | |
29 | mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) |
|
30 | mt = ''.join(tmpl('mimetype', encoding=encoding.encoding)) |
@@ -15,6 +15,8 b' from mercurial import util' | |||||
15 | import server |
|
15 | import server | |
16 | from client import client, QueryFailed |
|
16 | from client import client, QueryFailed | |
17 |
|
17 | |||
|
18 | testedwith = 'internal' | |||
|
19 | ||||
18 | def serve(ui, repo, **opts): |
|
20 | def serve(ui, repo, **opts): | |
19 | '''start an inotify server for this repository''' |
|
21 | '''start an inotify server for this repository''' | |
20 | server.start(ui, repo.dirstate, repo.root, opts) |
|
22 | server.start(ui, repo.dirstate, repo.root, opts) |
@@ -28,6 +28,8 b' from mercurial.hgweb import hgweb_mod' | |||||
28 | from mercurial import templatefilters, extensions |
|
28 | from mercurial import templatefilters, extensions | |
29 | from mercurial.i18n import _ |
|
29 | from mercurial.i18n import _ | |
30 |
|
30 | |||
|
31 | testedwith = 'internal' | |||
|
32 | ||||
31 | interhg_table = [] |
|
33 | interhg_table = [] | |
32 |
|
34 | |||
33 | def uisetup(ui): |
|
35 | def uisetup(ui): |
@@ -92,6 +92,7 b" commands.optionalrepo += ' kwdemo'" | |||||
92 |
|
92 | |||
93 | cmdtable = {} |
|
93 | cmdtable = {} | |
94 | command = cmdutil.command(cmdtable) |
|
94 | command = cmdutil.command(cmdtable) | |
|
95 | testedwith = 'internal' | |||
95 |
|
96 | |||
96 | # hg commands that do not act on keywords |
|
97 | # hg commands that do not act on keywords | |
97 | nokwcommands = ('add addremove annotate bundle export grep incoming init log' |
|
98 | nokwcommands = ('add addremove annotate bundle export grep incoming init log' |
@@ -73,6 +73,7 b" seriesopts = [('s', 'summary', None, _('" | |||||
73 |
|
73 | |||
74 | cmdtable = {} |
|
74 | cmdtable = {} | |
75 | command = cmdutil.command(cmdtable) |
|
75 | command = cmdutil.command(cmdtable) | |
|
76 | testedwith = 'internal' | |||
76 |
|
77 | |||
77 | # Patch names looks like unix-file names. |
|
78 | # Patch names looks like unix-file names. | |
78 | # They must be joinable with queue directory and result in the patch path. |
|
79 | # They must be joinable with queue directory and result in the patch path. |
@@ -128,6 +128,8 b' from mercurial.i18n import _' | |||||
128 | from mercurial import patch, cmdutil, templater, util, mail |
|
128 | from mercurial import patch, cmdutil, templater, util, mail | |
129 | import email.Parser, email.Errors, fnmatch, socket, time |
|
129 | import email.Parser, email.Errors, fnmatch, socket, time | |
130 |
|
130 | |||
|
131 | testedwith = 'internal' | |||
|
132 | ||||
131 | # template for single changeset can include email headers. |
|
133 | # template for single changeset can include email headers. | |
132 | single_template = ''' |
|
134 | single_template = ''' | |
133 | Subject: changeset in {webroot}: {desc|firstline|strip} |
|
135 | Subject: changeset in {webroot}: {desc|firstline|strip} |
@@ -51,6 +51,8 b' import atexit, sys, os, signal, subproce' | |||||
51 | from mercurial import commands, dispatch, util, extensions |
|
51 | from mercurial import commands, dispatch, util, extensions | |
52 | from mercurial.i18n import _ |
|
52 | from mercurial.i18n import _ | |
53 |
|
53 | |||
|
54 | testedwith = 'internal' | |||
|
55 | ||||
54 | def _runpager(p): |
|
56 | def _runpager(p): | |
55 | pager = subprocess.Popen(p, shell=True, bufsize=-1, |
|
57 | pager = subprocess.Popen(p, shell=True, bufsize=-1, | |
56 | close_fds=util.closefds, stdin=subprocess.PIPE, |
|
58 | close_fds=util.closefds, stdin=subprocess.PIPE, |
@@ -55,6 +55,7 b' from mercurial.node import bin' | |||||
55 |
|
55 | |||
56 | cmdtable = {} |
|
56 | cmdtable = {} | |
57 | command = cmdutil.command(cmdtable) |
|
57 | command = cmdutil.command(cmdtable) | |
|
58 | testedwith = 'internal' | |||
58 |
|
59 | |||
59 | def prompt(ui, prompt, default=None, rest=':'): |
|
60 | def prompt(ui, prompt, default=None, rest=':'): | |
60 | if default: |
|
61 | if default: |
@@ -40,6 +40,7 b' import time' | |||||
40 |
|
40 | |||
41 | from mercurial import util |
|
41 | from mercurial import util | |
42 | from mercurial.i18n import _ |
|
42 | from mercurial.i18n import _ | |
|
43 | testedwith = 'internal' | |||
43 |
|
44 | |||
44 | def spacejoin(*args): |
|
45 | def spacejoin(*args): | |
45 | return ' '.join(s for s in args if s) |
|
46 | return ' '.join(s for s in args if s) |
@@ -30,6 +30,7 b' import os, stat' | |||||
30 |
|
30 | |||
31 | cmdtable = {} |
|
31 | cmdtable = {} | |
32 | command = cmdutil.command(cmdtable) |
|
32 | command = cmdutil.command(cmdtable) | |
|
33 | testedwith = 'internal' | |||
33 |
|
34 | |||
34 | @command('purge|clean', |
|
35 | @command('purge|clean', | |
35 | [('a', 'abort-on-err', None, _('abort if an error occurs')), |
|
36 | [('a', 'abort-on-err', None, _('abort if an error occurs')), |
@@ -26,6 +26,7 b' nullmerge = -2' | |||||
26 |
|
26 | |||
27 | cmdtable = {} |
|
27 | cmdtable = {} | |
28 | command = cmdutil.command(cmdtable) |
|
28 | command = cmdutil.command(cmdtable) | |
|
29 | testedwith = 'internal' | |||
29 |
|
30 | |||
30 | @command('rebase', |
|
31 | @command('rebase', | |
31 | [('s', 'source', '', |
|
32 | [('s', 'source', '', |
@@ -14,6 +14,7 b' import copy, cStringIO, errno, os, re, s' | |||||
14 |
|
14 | |||
15 | cmdtable = {} |
|
15 | cmdtable = {} | |
16 | command = cmdutil.command(cmdtable) |
|
16 | command = cmdutil.command(cmdtable) | |
|
17 | testedwith = 'internal' | |||
17 |
|
18 | |||
18 | lines_re = re.compile(r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@\s*(.*)') |
|
19 | lines_re = re.compile(r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@\s*(.*)') | |
19 |
|
20 |
@@ -11,6 +11,8 b' from mercurial import hg, util' | |||||
11 | from mercurial.i18n import _ |
|
11 | from mercurial.i18n import _ | |
12 | import os, stat |
|
12 | import os, stat | |
13 |
|
13 | |||
|
14 | testedwith = 'internal' | |||
|
15 | ||||
14 | def relink(ui, repo, origin=None, **opts): |
|
16 | def relink(ui, repo, origin=None, **opts): | |
15 | """recreate hardlinks between two repositories |
|
17 | """recreate hardlinks between two repositories | |
16 |
|
18 |
@@ -44,6 +44,8 b' import os, re' | |||||
44 | from mercurial import extensions, hg, templater, util |
|
44 | from mercurial import extensions, hg, templater, util | |
45 | from mercurial.i18n import _ |
|
45 | from mercurial.i18n import _ | |
46 |
|
46 | |||
|
47 | testedwith = 'internal' | |||
|
48 | ||||
47 |
|
49 | |||
48 | class ShortRepository(object): |
|
50 | class ShortRepository(object): | |
49 | def __init__(self, url, scheme, templater): |
|
51 | def __init__(self, url, scheme, templater): |
@@ -8,6 +8,8 b'' | |||||
8 | from mercurial.i18n import _ |
|
8 | from mercurial.i18n import _ | |
9 | from mercurial import hg, commands, util |
|
9 | from mercurial import hg, commands, util | |
10 |
|
10 | |||
|
11 | testedwith = 'internal' | |||
|
12 | ||||
11 | def share(ui, source, dest=None, noupdate=False): |
|
13 | def share(ui, source, dest=None, noupdate=False): | |
12 | """create a new shared repository |
|
14 | """create a new shared repository | |
13 |
|
15 |
@@ -25,6 +25,7 b' class TransplantError(error.Abort):' | |||||
25 |
|
25 | |||
26 | cmdtable = {} |
|
26 | cmdtable = {} | |
27 | command = cmdutil.command(cmdtable) |
|
27 | command = cmdutil.command(cmdtable) | |
|
28 | testedwith = 'internal' | |||
28 |
|
29 | |||
29 | class transplantentry(object): |
|
30 | class transplantentry(object): | |
30 | def __init__(self, lnode, rnode): |
|
31 | def __init__(self, lnode, rnode): |
@@ -48,6 +48,7 b' It is useful for the users who want to c' | |||||
48 | import os, sys |
|
48 | import os, sys | |
49 | from mercurial.i18n import _ |
|
49 | from mercurial.i18n import _ | |
50 | from mercurial import util, encoding |
|
50 | from mercurial import util, encoding | |
|
51 | testedwith = 'internal' | |||
51 |
|
52 | |||
52 | _encoding = None # see extsetup |
|
53 | _encoding = None # see extsetup | |
53 |
|
54 | |||
@@ -164,4 +165,3 b' def extsetup(ui):' | |||||
164 | if '--debug' in sys.argv: |
|
165 | if '--debug' in sys.argv: | |
165 | ui.write("[win32mbcs] activated with encoding: %s\n" |
|
166 | ui.write("[win32mbcs] activated with encoding: %s\n" | |
166 | % _encoding) |
|
167 | % _encoding) | |
167 |
|
@@ -46,6 +46,8 b' from mercurial.node import short' | |||||
46 | from mercurial import util |
|
46 | from mercurial import util | |
47 | import re |
|
47 | import re | |
48 |
|
48 | |||
|
49 | testedwith = 'internal' | |||
|
50 | ||||
49 | # regexp for single LF without CR preceding. |
|
51 | # regexp for single LF without CR preceding. | |
50 | re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE) |
|
52 | re_single_lf = re.compile('(^|[^\r])\n', re.MULTILINE) | |
51 |
|
53 |
@@ -32,6 +32,8 b' from mercurial import extensions' | |||||
32 | from mercurial.hgweb import hgweb_mod |
|
32 | from mercurial.hgweb import hgweb_mod | |
33 | from mercurial.hgweb import hgwebdir_mod |
|
33 | from mercurial.hgweb import hgwebdir_mod | |
34 |
|
34 | |||
|
35 | testedwith = 'internal' | |||
|
36 | ||||
35 | # publish |
|
37 | # publish | |
36 |
|
38 | |||
37 | server = None |
|
39 | server = None |
General Comments 0
You need to be logged in to leave comments.
Login now