Show More
@@ -698,6 +698,9 b' def fixfile(ui, repo, opts, fixers, fixc' | |||||
698 | command = fixer.command(ui, path, ranges) |
|
698 | command = fixer.command(ui, path, ranges) | |
699 | if command is None: |
|
699 | if command is None: | |
700 | continue |
|
700 | continue | |
|
701 | msg = b'fixing: %s - %s - %s\n' | |||
|
702 | msg %= (fixctx, fixername, path) | |||
|
703 | ui.debug(msg) | |||
701 | ui.debug(b'subprocess: %s\n' % (command,)) |
|
704 | ui.debug(b'subprocess: %s\n' % (command,)) | |
702 | proc = subprocess.Popen( |
|
705 | proc = subprocess.Popen( | |
703 | procutil.tonativestr(command), |
|
706 | procutil.tonativestr(command), |
@@ -7500,6 +7500,9 b' def tag(ui, repo, name1, *names, **opts)' | |||||
7500 | ) |
|
7500 | ) | |
7501 | node = logcmdutil.revsingle(repo, rev_).node() |
|
7501 | node = logcmdutil.revsingle(repo, rev_).node() | |
7502 |
|
7502 | |||
|
7503 | if node is None: | |||
|
7504 | raise error.InputError(_(b"cannot tag working directory")) | |||
|
7505 | ||||
7503 | if not message: |
|
7506 | if not message: | |
7504 | # we don't translate commit messages |
|
7507 | # we don't translate commit messages | |
7505 | message = b'Added tag %s for changeset %s' % ( |
|
7508 | message = b'Added tag %s for changeset %s' % ( |
@@ -206,7 +206,7 b' class _httprequesthandler(httpservermod.' | |||||
206 | env['SERVER_PROTOCOL'] = self.request_version |
|
206 | env['SERVER_PROTOCOL'] = self.request_version | |
207 | env['wsgi.version'] = (1, 0) |
|
207 | env['wsgi.version'] = (1, 0) | |
208 | env['wsgi.url_scheme'] = pycompat.sysstr(self.url_scheme) |
|
208 | env['wsgi.url_scheme'] = pycompat.sysstr(self.url_scheme) | |
209 |
if env.get('HTTP_EXPECT', |
|
209 | if env.get('HTTP_EXPECT', '').lower() == '100-continue': | |
210 | self.rfile = common.continuereader(self.rfile, self.wfile.write) |
|
210 | self.rfile = common.continuereader(self.rfile, self.wfile.write) | |
211 |
|
211 | |||
212 | env['wsgi.input'] = self.rfile |
|
212 | env['wsgi.input'] = self.rfile |
@@ -1153,6 +1153,7 b' useful for anyone trying to set up a new' | |||||
1153 | $ hg commit -Aqm "foo" |
|
1153 | $ hg commit -Aqm "foo" | |
1154 | $ printf "Foo\nbar\nBaz\n" > foo.changed |
|
1154 | $ printf "Foo\nbar\nBaz\n" > foo.changed | |
1155 | $ hg --debug fix --working-dir |
|
1155 | $ hg --debug fix --working-dir | |
|
1156 | fixing: f65cf3136d41+ - uppercase-changed-lines - foo.changed | |||
1156 | subprocess: * $TESTTMP/uppercase.py 1-1 3-3 (glob) |
|
1157 | subprocess: * $TESTTMP/uppercase.py 1-1 3-3 (glob) | |
1157 |
|
1158 | |||
1158 | $ cd .. |
|
1159 | $ cd .. |
@@ -77,6 +77,11 b'' | |||||
77 | n 644 2 * z (glob) |
|
77 | n 644 2 * z (glob) | |
78 | $ echo xxxx > x |
|
78 | $ echo xxxx > x | |
79 | $ echo yyyy > y |
|
79 | $ echo yyyy > y | |
|
80 | # run status early to avoid a flaky second fetch during commit. | |||
|
81 | $ hg st | |||
|
82 | M x | |||
|
83 | M y | |||
|
84 | \d+ files fetched over \d+ fetches .* (re) (?) | |||
80 | $ hg commit -m x |
|
85 | $ hg commit -m x | |
81 | created new head |
|
86 | created new head | |
82 | 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) |
|
87 | 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) | |
@@ -104,6 +109,9 b'' | |||||
104 | new changesets fed61014d323 |
|
109 | new changesets fed61014d323 | |
105 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
110 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
106 |
|
111 | |||
|
112 | # run status early to avoid a flaky second fetch during commit | |||
|
113 | $ hg status | |||
|
114 | \d+ files fetched over \d+ fetches .* (re) (?) | |||
107 |
$ |
|
115 | $ hg rebase -d tip | |
108 | rebasing 1:9abfe7bca547 "a" |
|
116 | rebasing 1:9abfe7bca547 "a" | |
109 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/9abfe7bca547-8b11e5ff-rebase.hg (glob) |
|
117 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/9abfe7bca547-8b11e5ff-rebase.hg (glob) |
@@ -412,6 +412,10 b' tagging on null rev' | |||||
412 | abort: cannot tag null revision |
|
412 | abort: cannot tag null revision | |
413 | [10] |
|
413 | [10] | |
414 |
|
414 | |||
|
415 | $ hg tag -R empty -r "wdir()" -f wdirtag | |||
|
416 | abort: cannot tag working directory | |||
|
417 | [10] | |||
|
418 | ||||
415 | issue5539: pruned tags do not appear in .hgtags |
|
419 | issue5539: pruned tags do not appear in .hgtags | |
416 |
|
420 | |||
417 | $ cat >> $HGRCPATH << EOF |
|
421 | $ cat >> $HGRCPATH << EOF |
General Comments 0
You need to be logged in to leave comments.
Login now