Show More
@@ -749,6 +749,9 b' class localrepository:' | |||||
749 | if self.remote: return -1 |
|
749 | if self.remote: return -1 | |
750 | return os.stat(self.path).st_dev |
|
750 | return os.stat(self.path).st_dev | |
751 |
|
751 | |||
|
752 | def local(self): | |||
|
753 | return not self.remote | |||
|
754 | ||||
752 | def join(self, f): |
|
755 | def join(self, f): | |
753 | return os.path.join(self.path, f) |
|
756 | return os.path.join(self.path, f) | |
754 |
|
757 | |||
@@ -1939,7 +1942,11 b' class localrepository:' | |||||
1939 | self.ui.warn("%d integrity errors encountered!\n" % errors) |
|
1942 | self.ui.warn("%d integrity errors encountered!\n" % errors) | |
1940 | return 1 |
|
1943 | return 1 | |
1941 |
|
1944 | |||
1942 |
class |
|
1945 | class remoterepository: | |
|
1946 | def local(self): | |||
|
1947 | return False | |||
|
1948 | ||||
|
1949 | class httprepository(remoterepository): | |||
1943 | def __init__(self, ui, path): |
|
1950 | def __init__(self, ui, path): | |
1944 | # fix missing / after hostname |
|
1951 | # fix missing / after hostname | |
1945 | s = urlparse.urlsplit(path) |
|
1952 | s = urlparse.urlsplit(path) | |
@@ -2078,7 +2085,7 b' class remotelock:' | |||||
2078 | if self.repo: |
|
2085 | if self.repo: | |
2079 | self.release() |
|
2086 | self.release() | |
2080 |
|
2087 | |||
2081 | class sshrepository: |
|
2088 | class sshrepository(remoterepository): | |
2082 | def __init__(self, ui, path): |
|
2089 | def __init__(self, ui, path): | |
2083 | self.url = path |
|
2090 | self.url = path | |
2084 | self.ui = ui |
|
2091 | self.ui = ui |
General Comments 0
You need to be logged in to leave comments.
Login now