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