Mercurial > hg
comparison hgext/largefiles/remotestore.py @ 21084:70252bdfd39c
largefiles: import whole modules instead of importing parts of them
Be more friendly to demandimport.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 08 Apr 2014 00:48:36 +0200 |
parents | a61ed1c2d7a7 |
children | bee00e0c2e45 |
comparison
equal
deleted
inserted
replaced
21083:20b0c49c032c | 21084:70252bdfd39c |
---|---|
6 | 6 |
7 '''remote largefile store; the base class for wirestore''' | 7 '''remote largefile store; the base class for wirestore''' |
8 | 8 |
9 import urllib2 | 9 import urllib2 |
10 | 10 |
11 from mercurial import util | 11 from mercurial import util, wireproto |
12 from mercurial.i18n import _ | 12 from mercurial.i18n import _ |
13 from mercurial.wireproto import remotebatch | |
14 | 13 |
15 import lfutil | 14 import lfutil |
16 import basestore | 15 import basestore |
17 | 16 |
18 class remotestore(basestore.basestore): | 17 class remotestore(basestore.basestore): |
95 raise RuntimeError('verify failed: unexpected response from ' | 94 raise RuntimeError('verify failed: unexpected response from ' |
96 'statlfile (%r)' % stat) | 95 'statlfile (%r)' % stat) |
97 | 96 |
98 def batch(self): | 97 def batch(self): |
99 '''Support for remote batching.''' | 98 '''Support for remote batching.''' |
100 return remotebatch(self) | 99 return wireproto.remotebatch(self) |