Show More
@@ -10,7 +10,12 b' from __future__ import absolute_import' | |||
|
10 | 10 | import collections |
|
11 | 11 | import os |
|
12 | 12 | |
|
13 |
from mercurial.node import |
|
|
13 | from mercurial.node import ( | |
|
14 | bin, | |
|
15 | nullid, | |
|
16 | wdirfilenodeids, | |
|
17 | wdirid, | |
|
18 | ) | |
|
14 | 19 | from mercurial.i18n import _ |
|
15 | 20 | from mercurial import ( |
|
16 | 21 | ancestor, |
@@ -306,6 +311,8 b' class remotefilelog(object):' | |||
|
306 | 311 | if len(node) != 20: |
|
307 | 312 | raise error.LookupError(node, self.filename, |
|
308 | 313 | _('invalid revision input')) |
|
314 | if node == wdirid or node in wdirfilenodeids: | |
|
315 | raise error.WdirUnsupported | |
|
309 | 316 | |
|
310 | 317 | store = self.repo.contentstore |
|
311 | 318 | rawtext = store.get(self.filename, node) |
@@ -35,11 +35,6 b' Test grepping the working directory.' | |||
|
35 | 35 | |
|
36 | 36 | $ hg grep --all-files x |
|
37 | 37 | x:x |
|
38 | BROKEN: modifications in the wdir tries to fetch from the server. | |
|
39 | 38 | $ echo foo >> x |
|
40 | 39 | $ hg grep --all-files x |
|
41 | remote: abort: working directory revision cannot be specified | |
|
42 | 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob) | |
|
43 | abort: error downloading file contents: | |
|
44 | 'connection closed early' | |
|
45 | [255] | |
|
40 | x:x |
General Comments 0
You need to be logged in to leave comments.
Login now