--- a/mercurial/scmutil.py Fri Jan 18 15:54:09 2013 +0100
+++ b/mercurial/scmutil.py Mon Apr 15 01:22:15 2013 +0900
@@ -263,9 +263,11 @@
This class is used to hide the details of COW semantics and
remote file access from higher level code.
'''
- def __init__(self, base, audit=True, expand=False):
- if expand:
- base = os.path.realpath(util.expandpath(base))
+ def __init__(self, base, audit=True, expandpath=False, realpath=False):
+ if expandpath:
+ base = util.expandpath(base)
+ if realpath:
+ base = os.path.realpath(base)
self.base = base
self._setmustaudit(audit)
self.createmode = None