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