Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/repo.py @ 6526:cfeeac24fc1e
repo: add rjoin method
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 11 Apr 2008 22:19:52 -0700 |
parents | 08800489257e |
children | 1d54e2f6c0b7 |
comparison
equal
deleted
inserted
replaced
6525:a020247d75e5 | 6526:cfeeac24fc1e |
---|---|
38 def local(self): | 38 def local(self): |
39 return False | 39 return False |
40 | 40 |
41 def cancopy(self): | 41 def cancopy(self): |
42 return self.local() | 42 return self.local() |
43 | |
44 def rjoin(self, path): | |
45 url = self.url() | |
46 if url.endswith('/'): | |
47 return url + path | |
48 return url + '/' + path |