equal
deleted
inserted
replaced
207 raise |
207 raise |
208 requirements = set() |
208 requirements = set() |
209 |
209 |
210 self.sharedpath = self.path |
210 self.sharedpath = self.path |
211 try: |
211 try: |
212 s = os.path.realpath(self.opener.read("sharedpath").rstrip('\n')) |
212 vfs = scmutil.vfs(self.vfs.read("sharedpath").rstrip('\n'), |
213 if not os.path.exists(s): |
213 realpath=True) |
|
214 s = vfs.base |
|
215 if not vfs.exists(): |
214 raise error.RepoError( |
216 raise error.RepoError( |
215 _('.hg/sharedpath points to nonexistent directory %s') % s) |
217 _('.hg/sharedpath points to nonexistent directory %s') % s) |
216 self.sharedpath = s |
218 self.sharedpath = s |
217 except IOError, inst: |
219 except IOError, inst: |
218 if inst.errno != errno.ENOENT: |
220 if inst.errno != errno.ENOENT: |