Show More
@@ -28,7 +28,7 b'' | |||
|
28 | 28 | # cat ~/.patchbomb-$1 |
|
29 | 29 | # fi |
|
30 | 30 | # } |
|
31 |
# |
|
|
31 | # | |
|
32 | 32 | # |
|
33 | 33 | # Writing completion functions for additional commands: |
|
34 | 34 | # |
@@ -50,7 +50,7 b'' | |||
|
50 | 50 | # an argument (e.g. '--cwd|-R|--repository') |
|
51 | 51 | # - $canonical - 1 if we canonicalized $cmd before calling the function |
|
52 | 52 | # 0 otherwise |
|
53 |
# |
|
|
53 | # | |
|
54 | 54 | |
|
55 | 55 | shopt -s extglob |
|
56 | 56 | |
@@ -425,7 +425,7 b' complete -o bashdefault -o default -F _h' | |||
|
425 | 425 | done |
|
426 | 426 | |
|
427 | 427 | if [ -z "$subcmd" ] || [ $COMP_CWORD -eq $i ] || [ "$subcmd" = help ]; then |
|
428 |
COMPREPLY=(${COMPREPLY[@]:-} |
|
|
428 | COMPREPLY=(${COMPREPLY[@]:-} | |
|
429 | 429 | $(compgen -W 'bad good help init next reset' -- "$cur")) |
|
430 | 430 | return |
|
431 | 431 | fi |
@@ -445,7 +445,7 b' complete -o bashdefault -o default -F _h' | |||
|
445 | 445 | { |
|
446 | 446 | case "$prev" in |
|
447 | 447 | -c|--cc|-t|--to|-f|--from|--bcc) |
|
448 |
# we need an e-mail address. let the user provide a function |
|
|
448 | # we need an e-mail address. let the user provide a function | |
|
449 | 449 | # to get them |
|
450 | 450 | if [ "$(type -t _hg_emails)" = function ]; then |
|
451 | 451 | local arg=to |
@@ -15,7 +15,7 b' parser.add_option("-d", "--difflib", act' | |||
|
15 | 15 | parser.add_option('-x', '--count', default=1) |
|
16 | 16 | parser.add_option('-c', '--context', type="int", default=3) |
|
17 | 17 | parser.add_option('-p', '--show-c-function', action="store_true", default=False) |
|
18 |
parser.add_option('-w', '--ignore-all-space', action="store_true", |
|
|
18 | parser.add_option('-w', '--ignore-all-space', action="store_true", | |
|
19 | 19 | default=False) |
|
20 | 20 | |
|
21 | 21 | (options, args) = parser.parse_args() |
@@ -249,7 +249,7 b' enum cmdline {' | |||
|
249 | 249 | hg_serve, |
|
250 | 250 | }; |
|
251 | 251 | |
|
252 | ||
|
252 | ||
|
253 | 253 | /* |
|
254 | 254 | * attempt to verify that a directory is really a hg repo, by testing |
|
255 | 255 | * for the existence of a subdirectory. |
@@ -342,13 +342,13 b' static void serve_data(int argc, char **' | |||
|
342 | 342 | |
|
343 | 343 | if (cmd != hg_init) { |
|
344 | 344 | int valid; |
|
345 | ||
|
345 | ||
|
346 | 346 | valid = validate_repo(repo_root, "data"); |
|
347 | 347 | |
|
348 | 348 | if (valid == -1) { |
|
349 | 349 | goto badargs; |
|
350 | 350 | } |
|
351 | ||
|
351 | ||
|
352 | 352 | if (valid == 0) { |
|
353 | 353 | valid = validate_repo(repo_root, "store"); |
|
354 | 354 | |
@@ -356,7 +356,7 b' static void serve_data(int argc, char **' | |||
|
356 | 356 | goto badargs; |
|
357 | 357 | } |
|
358 | 358 | } |
|
359 | ||
|
359 | ||
|
360 | 360 | if (valid == 0) { |
|
361 | 361 | perror(repo); |
|
362 | 362 | exit(EX_DATAERR); |
@@ -385,7 +385,7 b' static void serve_data(int argc, char **' | |||
|
385 | 385 | nargv[i++] = repo; |
|
386 | 386 | break; |
|
387 | 387 | } |
|
388 | ||
|
388 | ||
|
389 | 389 | nargv[i] = NULL; |
|
390 | 390 | |
|
391 | 391 | if (debug) { |
@@ -426,7 +426,7 b" Handle frickin' frackin' gratuitous even" | |||
|
426 | 426 | (if (or (not default) current-prefix-arg) |
|
427 | 427 | (string-to-number |
|
428 | 428 | (eval (list* 'read-string |
|
429 |
(or prompt "") |
|
|
429 | (or prompt "") | |
|
430 | 430 | (if default (cons (format "%d" default) nil) nil)))) |
|
431 | 431 | default))) |
|
432 | 432 | |
@@ -565,7 +565,7 b' directory names from the file system. W' | |||
|
565 | 565 | (when buf |
|
566 | 566 | (set-buffer buf) |
|
567 | 567 | (hg-mode-line-internal status parents))))))) |
|
568 | ||
|
568 | ||
|
569 | 569 | |
|
570 | 570 | ;;; View mode bits. |
|
571 | 571 | |
@@ -588,7 +588,7 b' current frame."' | |||
|
588 | 588 | (setq hg-view-mode t) |
|
589 | 589 | (setq truncate-lines t) |
|
590 | 590 | (when file-name |
|
591 |
(setq hg-view-file-name |
|
|
591 | (setq hg-view-file-name | |
|
592 | 592 | (hg-abbrev-file-name file-name)))) |
|
593 | 593 | |
|
594 | 594 | (defun hg-file-status (file) |
@@ -703,7 +703,7 b' Always returns a valid, hopefully sane, ' | |||
|
703 | 703 | (added . "a") |
|
704 | 704 | (deleted . "!") |
|
705 | 705 | (modified . "m")))))))) |
|
706 | ||
|
706 | ||
|
707 | 707 | (defun hg-mode-line (&optional force) |
|
708 | 708 | "Update the modeline with the current status of a file. |
|
709 | 709 | An update occurs if optional argument FORCE is non-nil, |
@@ -1000,7 +1000,7 b' With a prefix argument, prompt for all o' | |||
|
1000 | 1000 | ;; none revision is specified explicitly |
|
1001 | 1001 | (none (and (not rev1) (not rev2))) |
|
1002 | 1002 | ;; only one revision is specified explicitly |
|
1003 |
(one (or (and (or (equal rev1 rev2) (not rev2)) rev1) |
|
|
1003 | (one (or (and (or (equal rev1 rev2) (not rev2)) rev1) | |
|
1004 | 1004 | (and (not rev1) rev2))) |
|
1005 | 1005 | diff) |
|
1006 | 1006 | (hg-view-output ((cond |
@@ -1012,7 +1012,7 b' With a prefix argument, prompt for all o' | |||
|
1012 | 1012 | (format "Mercurial: Diff from rev %s to %s of %s" |
|
1013 | 1013 | rev1 rev2 a-path)))) |
|
1014 | 1014 | (cond |
|
1015 |
(none |
|
|
1015 | (none | |
|
1016 | 1016 | (call-process (hg-binary) nil t nil "diff" path)) |
|
1017 | 1017 | (one |
|
1018 | 1018 | (call-process (hg-binary) nil t nil "diff" "-r" one path)) |
@@ -1100,7 +1100,7 b' With a prefix argument, prompt for each ' | |||
|
1100 | 1100 | (limit (format "%d" (or log-limit hg-log-limit)))) |
|
1101 | 1101 | (hg-view-output ((if (equal r1 r2) |
|
1102 | 1102 | (format "Mercurial: Log of rev %s of %s" rev1 a-path) |
|
1103 |
(format |
|
|
1103 | (format | |
|
1104 | 1104 | "Mercurial: at most %s log(s) from rev %s to %s of %s" |
|
1105 | 1105 | limit r1 r2 a-path))) |
|
1106 | 1106 | (eval (list* 'call-process (hg-binary) nil t nil |
@@ -1123,7 +1123,7 b' With a prefix argument, prompt for each ' | |||
|
1123 | 1123 | (interactive (list (hg-read-file-name " to log") |
|
1124 | 1124 | (hg-read-rev " to start with" |
|
1125 | 1125 | "tip") |
|
1126 |
(hg-read-rev " to end with" |
|
|
1126 | (hg-read-rev " to end with" | |
|
1127 | 1127 | "0") |
|
1128 | 1128 | (hg-read-number "Output limited to: " |
|
1129 | 1129 | hg-log-limit))) |
@@ -131,7 +131,7 b' May return nil, meaning \\"use the defaul' | |||
|
131 | 131 | (let ((line (buffer-substring bol (point)))) |
|
132 | 132 | (when (> (length line) 0) |
|
133 | 133 | line)))) |
|
134 | ||
|
134 | ||
|
135 | 135 | (defun mq-push (&optional patch) |
|
136 | 136 | "Push patches until PATCH is reached. |
|
137 | 137 | If PATCH is nil, push at most one patch." |
@@ -166,7 +166,7 b' If PATCH is nil, push at most one patch.' | |||
|
166 | 166 | (if ok |
|
167 | 167 | (message "Pushing... %s" last-line) |
|
168 | 168 | (error "Pushing... %s" last-line))))) |
|
169 | ||
|
169 | ||
|
170 | 170 | (defun mq-push-all () |
|
171 | 171 | "Push patches until all are applied." |
|
172 | 172 | (interactive) |
@@ -195,7 +195,7 b' If PATCH is nil, pop at most one patch."' | |||
|
195 | 195 | (if ok |
|
196 | 196 | (message "Popping... %s" last-line) |
|
197 | 197 | (error "Popping... %s" last-line))))) |
|
198 | ||
|
198 | ||
|
199 | 199 | (defun mq-pop-all () |
|
200 | 200 | "Push patches until none are applied." |
|
201 | 201 | (interactive) |
@@ -255,7 +255,7 b' This would become the active patch if po' | |||
|
255 | 255 | (let ((buf mq-prev-buffer)) |
|
256 | 256 | (kill-buffer nil) |
|
257 | 257 | (switch-to-buffer buf))) |
|
258 | ||
|
258 | ||
|
259 | 259 | (defun mq-edit-kill () |
|
260 | 260 | "Kill the edit currently being prepared." |
|
261 | 261 | (interactive) |
@@ -316,7 +316,7 b' Key bindings' | |||
|
316 | 316 | (set-buffer-modified-p nil) |
|
317 | 317 | (setq buffer-undo-list nil) |
|
318 | 318 | (run-hooks 'text-mode-hook 'mq-edit-mode-hook)) |
|
319 | ||
|
319 | ||
|
320 | 320 | (defun mq-refresh-edit () |
|
321 | 321 | "Refresh the topmost applied patch, editing the patch description." |
|
322 | 322 | (interactive) |
@@ -28,7 +28,7 b' from mercurial.i18n import _' | |||
|
28 | 28 | |
|
29 | 29 | class CantReprocessAndShowBase(Exception): |
|
30 | 30 | pass |
|
31 | ||
|
31 | ||
|
32 | 32 | |
|
33 | 33 | def warn(message): |
|
34 | 34 | sys.stdout.flush() |
@@ -50,7 +50,7 b' def intersect(ra, rb):' | |||
|
50 | 50 | """ |
|
51 | 51 | assert ra[0] <= ra[1] |
|
52 | 52 | assert rb[0] <= rb[1] |
|
53 | ||
|
53 | ||
|
54 | 54 | sa = max(ra[0], rb[0]) |
|
55 | 55 | sb = min(ra[1], rb[1]) |
|
56 | 56 | if sa < sb: |
@@ -69,7 +69,7 b' def compare_range(a, astart, aend, b, bs' | |||
|
69 | 69 | return False |
|
70 | 70 | else: |
|
71 | 71 | return True |
|
72 | ||
|
72 | ||
|
73 | 73 | |
|
74 | 74 | |
|
75 | 75 | |
@@ -149,15 +149,15 b' class Merge3Text(object):' | |||
|
149 | 149 | yield end_marker + newline |
|
150 | 150 | else: |
|
151 | 151 | raise ValueError(what) |
|
152 | ||
|
153 | ||
|
152 | ||
|
153 | ||
|
154 | 154 | |
|
155 | 155 | |
|
156 | 156 | |
|
157 | 157 | def merge_annotated(self): |
|
158 | 158 | """Return merge with conflicts, showing origin of lines. |
|
159 | 159 | |
|
160 |
Most useful for debugging merge. |
|
|
160 | Most useful for debugging merge. | |
|
161 | 161 | """ |
|
162 | 162 | for t in self.merge_regions(): |
|
163 | 163 | what = t[0] |
@@ -180,8 +180,8 b' class Merge3Text(object):' | |||
|
180 | 180 | yield '>>>>\n' |
|
181 | 181 | else: |
|
182 | 182 | raise ValueError(what) |
|
183 | ||
|
184 | ||
|
183 | ||
|
184 | ||
|
185 | 185 | |
|
186 | 186 | |
|
187 | 187 | |
@@ -249,15 +249,15 b' class Merge3Text(object):' | |||
|
249 | 249 | |
|
250 | 250 | # section a[0:ia] has been disposed of, etc |
|
251 | 251 | iz = ia = ib = 0 |
|
252 | ||
|
252 | ||
|
253 | 253 | for zmatch, zend, amatch, aend, bmatch, bend in self.find_sync_regions(): |
|
254 | 254 | #print 'match base [%d:%d]' % (zmatch, zend) |
|
255 | ||
|
255 | ||
|
256 | 256 | matchlen = zend - zmatch |
|
257 | 257 | assert matchlen >= 0 |
|
258 | 258 | assert matchlen == (aend - amatch) |
|
259 | 259 | assert matchlen == (bend - bmatch) |
|
260 | ||
|
260 | ||
|
261 | 261 | len_a = amatch - ia |
|
262 | 262 | len_b = bmatch - ib |
|
263 | 263 | len_base = zmatch - iz |
@@ -294,22 +294,22 b' class Merge3Text(object):' | |||
|
294 | 294 | # if the same part of the base was deleted on both sides |
|
295 | 295 | # that's OK, we can just skip it. |
|
296 | 296 | |
|
297 | ||
|
297 | ||
|
298 | 298 | if matchlen > 0: |
|
299 | 299 | assert ia == amatch |
|
300 | 300 | assert ib == bmatch |
|
301 | 301 | assert iz == zmatch |
|
302 | ||
|
302 | ||
|
303 | 303 | yield 'unchanged', zmatch, zend |
|
304 | 304 | iz = zend |
|
305 | 305 | ia = aend |
|
306 | 306 | ib = bend |
|
307 | ||
|
307 | ||
|
308 | 308 | |
|
309 | 309 | def reprocess_merge_regions(self, merge_regions): |
|
310 | 310 | """Where there are conflict regions, remove the agreed lines. |
|
311 | 311 | |
|
312 |
Lines where both A and B have made the same changes are |
|
|
312 | Lines where both A and B have made the same changes are | |
|
313 | 313 | eliminated. |
|
314 | 314 | """ |
|
315 | 315 | for region in merge_regions: |
@@ -342,7 +342,7 b' class Merge3Text(object):' | |||
|
342 | 342 | if next_a < region_ia or next_b < region_ib: |
|
343 | 343 | return 'conflict', None, None, next_a, region_ia, next_b, region_ib |
|
344 | 344 | mismatch_region = staticmethod(mismatch_region) |
|
345 | ||
|
345 | ||
|
346 | 346 | |
|
347 | 347 | def find_sync_regions(self): |
|
348 | 348 | """Return a list of sync regions, where both descendents match the base. |
@@ -397,7 +397,7 b' class Merge3Text(object):' | |||
|
397 | 397 | ia += 1 |
|
398 | 398 | else: |
|
399 | 399 | ib += 1 |
|
400 | ||
|
400 | ||
|
401 | 401 | intbase = len(self.base) |
|
402 | 402 | abase = len(self.a) |
|
403 | 403 | bbase = len(self.b) |
@@ -429,7 +429,7 b' class Merge3Text(object):' | |||
|
429 | 429 | del am[0] |
|
430 | 430 | else: |
|
431 | 431 | del bm[0] |
|
432 | ||
|
432 | ||
|
433 | 433 | return unc |
|
434 | 434 | |
|
435 | 435 | |
@@ -511,9 +511,9 b" options = [('L', 'label', [], _('labels " | |||
|
511 | 511 | usage = _('''simplemerge [OPTS] LOCAL BASE OTHER |
|
512 | 512 | |
|
513 | 513 | Simple three-way file merge utility with a minimal feature set. |
|
514 | ||
|
514 | ||
|
515 | 515 | Apply to LOCAL the changes necessary to go from BASE to OTHER. |
|
516 | ||
|
516 | ||
|
517 | 517 | By default, LOCAL is overwritten with the results of this operation. |
|
518 | 518 | ''') |
|
519 | 519 |
@@ -9,7 +9,7 b'' | |||
|
9 | 9 | " Usage: These command and gui menu displays useful hg functions |
|
10 | 10 | " Configuration: Your hg executable must be in your path. |
|
11 | 11 | " ============================================================================= |
|
12 | ||
|
12 | ||
|
13 | 13 | " Section: Init {{{1 |
|
14 | 14 | if exists("loaded_hg_menu") |
|
15 | 15 | finish |
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | <html> |
|
3 | 3 | <head> |
|
4 | 4 | <title>Mercurial for Windows</title> |
|
5 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > |
|
|
5 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > | |
|
6 | 6 | <style type="text/css"> |
|
7 | 7 | <!-- |
|
8 | 8 | .indented |
@@ -21,7 +21,7 b'' | |||
|
21 | 21 | <p>Mercurial is a command-line application. You must run it from |
|
22 | 22 | the Windows command prompt (or if you're hard core, a <a |
|
23 | 23 | href="http://www.mingw.org/">MinGW</a> shell).</p> |
|
24 | ||
|
24 | ||
|
25 | 25 | <p><div class="indented"><i>Note: the standard <a |
|
26 | 26 | href="http://www.mingw.org/">MinGW</a> msys startup script uses |
|
27 | 27 | rxvt which has problems setting up standard input and output. |
@@ -59,10 +59,10 b' editor = whatever' | |||
|
59 | 59 | </pre> |
|
60 | 60 | |
|
61 | 61 | <h4>Configuring a Merge program</h4> |
|
62 |
It should be emphasized that Mercurial by itself doesn't attempt to do a |
|
|
62 | It should be emphasized that Mercurial by itself doesn't attempt to do a | |
|
63 | 63 | Merge at the file level, neither does it make any attempt to Resolve the conflicts. |
|
64 | 64 | |
|
65 |
By default, Mercurial will use the merge program defined by the HGMERGE environment |
|
|
65 | By default, Mercurial will use the merge program defined by the HGMERGE environment | |
|
66 | 66 | variable, or uses the one defined in the mercurial.ini file. (see <a href="http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram">MergeProgram</a> on the Mercurial Wiki for more information) |
|
67 | 67 | |
|
68 | 68 | <h1>Reporting problems</h1> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | ; USERNAME is your Windows user name: |
|
4 | 4 | ; C:\Documents and Settings\USERNAME\Mercurial.ini |
|
5 | 5 | |
|
6 |
[ui] |
|
|
6 | [ui] | |
|
7 | 7 | editor = notepad |
|
8 | 8 | |
|
9 | 9 | ; By default, we try to encode and decode all files that do not |
@@ -35,7 +35,7 b' C:\\hg\\hg-release.' | |||
|
35 | 35 | |
|
36 | 36 | In a shell, build a standalone copy of the hg.exe program: |
|
37 | 37 | |
|
38 |
python setup.py build -c mingw32 |
|
|
38 | python setup.py build -c mingw32 | |
|
39 | 39 | python setup.py py2exe -b 1 |
|
40 | 40 | |
|
41 | 41 | Note: the previously suggested combined command of "python setup.py build -c |
@@ -137,17 +137,17 b' decode/encode::' | |||
|
137 | 137 | **.txt = tempfile: unix2dos -n INFILE OUTFILE |
|
138 | 138 | |
|
139 | 139 | defaults:: |
|
140 |
Use the [defaults] section to define command defaults, i.e. the |
|
|
140 | Use the [defaults] section to define command defaults, i.e. the | |
|
141 | 141 | default options/arguments to pass to the specified commands. |
|
142 | ||
|
142 | ||
|
143 | 143 | The following example makes 'hg log' run in verbose mode, and |
|
144 | 144 | 'hg status' show only the modified files, by default. |
|
145 | ||
|
145 | ||
|
146 | 146 | [defaults] |
|
147 | 147 | log = -v |
|
148 | 148 | status = -m |
|
149 | ||
|
150 |
The actual commands, instead of their aliases, must be used when |
|
|
149 | ||
|
150 | The actual commands, instead of their aliases, must be used when | |
|
151 | 151 | defining command defaults. The command defaults will also be |
|
152 | 152 | applied to the aliases of the commands defined. |
|
153 | 153 |
@@ -481,7 +481,7 b' template::[header-declarations]' | |||
|
481 | 481 | </book> |
|
482 | 482 | |
|
483 | 483 | [preamble] |
|
484 |
# Preamble is not allowed in DocBook book so wrap it in a preface. |
|
|
484 | # Preamble is not allowed in DocBook book so wrap it in a preface. | |
|
485 | 485 | <preface{id? id="{id}"}> |
|
486 | 486 | <title>Preface</title> |
|
487 | 487 | | |
@@ -219,7 +219,7 b' copy <source ...> <dest>::' | |||
|
219 | 219 | -f, --force 既存の変更されたファイルに無理矢理コピー |
|
220 | 220 | します |
|
221 | 221 | -p, --parents コピー先にコピー元のパスを追加します |
|
222 | ||
|
222 | ||
|
223 | 223 | 別名: cp |
|
224 | 224 | |
|
225 | 225 | diff [-a] [-r revision] [-r revision] [files ...]:: |
@@ -388,7 +388,7 b' locate [options] [files]::' | |||
|
388 | 388 | |
|
389 | 389 | オプション: |
|
390 | 390 | |
|
391 |
-0, --print0 xargs と一緒に使うために、ファイル名を |
|
|
391 | -0, --print0 xargs と一緒に使うために、ファイル名を | |
|
392 | 392 | NUL で終えます |
|
393 | 393 | -f, --fullpath ファイルシステムのルートからの完全なパ |
|
394 | 394 | スを表示します |
@@ -580,9 +580,9 b' serve [options]::' | |||
|
580 | 580 | -E, --errorlog <file> エラーログが出力されるファイルの名前を |
|
581 | 581 | 指定します |
|
582 | 582 | -a, --address <addr> 使用するアドレスを指定します |
|
583 |
-p, --port <n> 使用するポートを指定します |
|
|
583 | -p, --port <n> 使用するポートを指定します | |
|
584 | 584 | (デフォルト: 8000) |
|
585 |
-n, --name <name> ウェブページで表示する名前を指定します |
|
|
585 | -n, --name <name> ウェブページで表示する名前を指定します | |
|
586 | 586 | (デフォルト: working dir) |
|
587 | 587 | -t, --templatedir <path> 使用するウェブの雛型を指定します |
|
588 | 588 | -6, --ipv6 IPv4 に加えて IPv6 も使用します |
@@ -61,7 +61,7 b' Mercurial \xe3\x81\xaf 3\xe3\x81\xa4\xe3\x81\xae\xe3\x83\x95\xe3\x82\xa1\xe3\x82\xa4\xe3\x83\xab\xe3\x81\x8b\xe3\x82\x89\xe8\xa8\xad\xe5\xae\x9a\xe3\x82\x92\xe8\xaa\xad\xe3\x81\xbf\xe3\x81\xbe\xe3\x81\x99:' | |||
|
61 | 61 | クションのそれぞれの目的や可能なキー、そして取り得る値について記述 |
|
62 | 62 | します。 |
|
63 | 63 | |
|
64 |
decode/encode:: |
|
|
64 | decode/encode:: | |
|
65 | 65 | checkout/checkin でファイルを転送するときのフィルターです。これ |
|
66 | 66 | は典型的には改行を処理したり、他の地域化/標準化に使われるでしょ |
|
67 | 67 | う。 |
@@ -98,7 +98,7 b' http_proxy::' | |||
|
98 | 98 | HTTP プロキシを通してウェブを使った Mercurial のリポジトリにアク |
|
99 | 99 | セスするのに使われます。 |
|
100 | 100 | host;; |
|
101 |
プロキシサーバのホスト名と(オプションの)ポートで、例えば |
|
|
101 | プロキシサーバのホスト名と(オプションの)ポートで、例えば | |
|
102 | 102 | "myproxy:8000"などです。 |
|
103 | 103 | no;; |
|
104 | 104 | オプションです。コンマで区切られたプロキシを通過すべきホスト名 |
@@ -31,7 +31,7 b' from mercurial import hg, util' | |||
|
31 | 31 | from mercurial.i18n import _ |
|
32 | 32 | import os |
|
33 | 33 | |
|
34 |
def dopurge(ui, repo, dirs=None, act=True, ignored=False, |
|
|
34 | def dopurge(ui, repo, dirs=None, act=True, ignored=False, | |
|
35 | 35 | abort_on_err=False, eol='\n', |
|
36 | 36 | force=False, include=None, exclude=None): |
|
37 | 37 | def error(msg): |
@@ -124,7 +124,7 b' class localrepository(repo.repository):' | |||
|
124 | 124 | fp.write('%s %s\n' % (hex(node), munge and munge(name) or name)) |
|
125 | 125 | fp.close() |
|
126 | 126 | self.hook('tag', node=hex(node), tag=name, local=local) |
|
127 | ||
|
127 | ||
|
128 | 128 | prevtags = '' |
|
129 | 129 | if local: |
|
130 | 130 | try: |
@@ -55,7 +55,7 b" if __name__ == '__main__':" | |||
|
55 | 55 | if options.list_features: |
|
56 | 56 | list_features() |
|
57 | 57 | sys.exit(0) |
|
58 | ||
|
58 | ||
|
59 | 59 | quiet = options.quiet |
|
60 | 60 | |
|
61 | 61 | failures = 0 |
@@ -65,17 +65,17 b" if __name__ == '__main__':" | |||
|
65 | 65 | if not quiet: |
|
66 | 66 | sys.stderr.write(msg + '\n') |
|
67 | 67 | failures += 1 |
|
68 | ||
|
68 | ||
|
69 | 69 | for feature in args: |
|
70 | 70 | if feature not in checks: |
|
71 | 71 | error('hghave: unknown feature: ' + feature) |
|
72 | 72 | continue |
|
73 | ||
|
74 |
check, desc = checks[feature] |
|
|
73 | ||
|
74 | check, desc = checks[feature] | |
|
75 | 75 | if not check(): |
|
76 | 76 | error('hghave: missing feature: ' + desc) |
|
77 | 77 | |
|
78 | 78 | if failures != 0: |
|
79 | 79 | sys.exit(1) |
|
80 | 80 | |
|
81 | ||
|
81 |
@@ -322,7 +322,7 b' def run_one(test):' | |||
|
322 | 322 | elif diffret: |
|
323 | 323 | ret = diffret |
|
324 | 324 | |
|
325 |
if ret != 0 and not skipped: |
|
|
325 | if ret != 0 and not skipped: | |
|
326 | 326 | # Save errors to a file for diagnosis |
|
327 | 327 | f = open(err, "wb") |
|
328 | 328 | for line in out: |
|
1 | NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now