Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 14825:de9eb6b1da4f stable 1.9
util: rename the util.localpath that uses url to urllocalpath (issue2875)
util is never imported by any other name than util, so this is mostly just a
simple search and replace from util.localpath to util.urllocalpath (assuming
other uses of util.localpath already has been renamed).
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 01 Jul 2011 17:37:09 +0200 |
parents | fdcf6f09b68d |
children | f73c7b70df68 |
comparison
equal
deleted
inserted
replaced
14824:7698c275aa56 | 14825:de9eb6b1da4f |
---|---|
1983 base, name = os.path.split(fn) | 1983 base, name = os.path.split(fn) |
1984 assert name.startswith('journal') | 1984 assert name.startswith('journal') |
1985 return os.path.join(base, name.replace('journal', 'undo', 1)) | 1985 return os.path.join(base, name.replace('journal', 'undo', 1)) |
1986 | 1986 |
1987 def instance(ui, path, create): | 1987 def instance(ui, path, create): |
1988 return localrepository(ui, util.localpath(path), create) | 1988 return localrepository(ui, util.urllocalpath(path), create) |
1989 | 1989 |
1990 def islocal(path): | 1990 def islocal(path): |
1991 return True | 1991 return True |