changeset 12035:ff1044230bca

repository: drop unused rjoin() method This method was introduced by cfeeac24fc1e but grepping the history does not reveal any call. Extensions may use it but the method intent is not even clear to me.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 22 Aug 2010 13:17:34 +0200
parents 3bfd425f1472
children 31f02288bbc4
files mercurial/localrepo.py mercurial/repo.py
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Aug 24 15:13:11 2010 +0200
+++ b/mercurial/localrepo.py	Sun Aug 22 13:17:34 2010 +0200
@@ -482,9 +482,6 @@
     def wjoin(self, f):
         return os.path.join(self.root, f)
 
-    def rjoin(self, f):
-        return os.path.join(self.root, util.pconvert(f))
-
     def file(self, f):
         if f[0] == '/':
             f = f[1:]
--- a/mercurial/repo.py	Tue Aug 24 15:13:11 2010 +0200
+++ b/mercurial/repo.py	Sun Aug 22 13:17:34 2010 +0200
@@ -35,10 +35,3 @@
 
     def cancopy(self):
         return self.local()
-
-    def rjoin(self, path):
-        url = self.url()
-        if url.endswith('/'):
-            return url + path
-        else:
-            return url + '/' + path