Show More
@@ -7,7 +7,6 b'' | |||||
7 | # of the GNU General Public License, incorporated herein by reference. |
|
7 | # of the GNU General Public License, incorporated herein by reference. | |
8 |
|
8 | |||
9 | from node import bin, hex |
|
9 | from node import bin, hex | |
10 | from remoterepo import remoterepository |
|
|||
11 | from i18n import _ |
|
10 | from i18n import _ | |
12 | import repo, os, urllib, urllib2, urlparse, zlib, util, httplib |
|
11 | import repo, os, urllib, urllib2, urlparse, zlib, util, httplib | |
13 | import errno, keepalive, socket, changegroup |
|
12 | import errno, keepalive, socket, changegroup | |
@@ -181,7 +180,7 b' def quotepath(path):' | |||||
181 | l[i] = '%%%02X' % ord(c) |
|
180 | l[i] = '%%%02X' % ord(c) | |
182 | return ''.join(l) |
|
181 | return ''.join(l) | |
183 |
|
182 | |||
184 |
class httprepository(re |
|
183 | class httprepository(repo.repository): | |
185 | def __init__(self, ui, path): |
|
184 | def __init__(self, ui, path): | |
186 | self.path = path |
|
185 | self.path = path | |
187 | self.caps = None |
|
186 | self.caps = None |
@@ -6,11 +6,20 b'' | |||||
6 | # of the GNU General Public License, incorporated herein by reference. |
|
6 | # of the GNU General Public License, incorporated herein by reference. | |
7 |
|
7 | |||
8 | from node import bin, hex |
|
8 | from node import bin, hex | |
9 | from remoterepo import remotelock, remoterepository |
|
|||
10 | from i18n import _ |
|
9 | from i18n import _ | |
11 | import repo, os, re, util |
|
10 | import repo, os, re, util | |
12 |
|
11 | |||
13 | class sshrepository(remoterepository): |
|
12 | class remotelock(object): | |
|
13 | def __init__(self, repo): | |||
|
14 | self.repo = repo | |||
|
15 | def release(self): | |||
|
16 | self.repo.unlock() | |||
|
17 | self.repo = None | |||
|
18 | def __del__(self): | |||
|
19 | if self.repo: | |||
|
20 | self.release() | |||
|
21 | ||||
|
22 | class sshrepository(repo.repository): | |||
14 | def __init__(self, ui, path, create=0): |
|
23 | def __init__(self, ui, path, create=0): | |
15 | self._url = path |
|
24 | self._url = path | |
16 | self.ui = ui |
|
25 | self.ui = ui |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now