equal
deleted
inserted
replaced
9 |
9 |
10 from mercurial.i18n import _ |
10 from mercurial.i18n import _ |
11 |
11 |
12 from mercurial import ( |
12 from mercurial import ( |
13 error, |
13 error, |
|
14 pycompat, |
14 util, |
15 util, |
15 ) |
16 ) |
16 |
17 |
17 from mercurial.utils import stringutil |
18 from mercurial.utils import stringutil |
18 |
19 |
47 ) |
48 ) |
48 |
49 |
49 def exists(self, hashes): |
50 def exists(self, hashes): |
50 return dict( |
51 return dict( |
51 (h, s == 0) |
52 (h, s == 0) |
52 for (h, s) in self._stat(hashes).iteritems() # dict-from-generator |
53 for (h, s) in pycompat.iteritems( |
|
54 self._stat(hashes) |
|
55 ) # dict-from-generator |
53 ) |
56 ) |
54 |
57 |
55 def sendfile(self, filename, hash): |
58 def sendfile(self, filename, hash): |
56 self.ui.debug(b'remotestore: sendfile(%s, %s)\n' % (filename, hash)) |
59 self.ui.debug(b'remotestore: sendfile(%s, %s)\n' % (filename, hash)) |
57 try: |
60 try: |