##// END OF EJS Templates
merge with stable
Matt Mackall -
r15489:25ea33fe merge default
parent child Browse files
Show More
@@ -376,7 +376,7 b' class dirstate(object):'
376 376 del self._map[f]
377 377
378 378 def _normalize(self, path, isknown):
379 normed = os.path.normcase(path)
379 normed = util.normcase(path)
380 380 folded = self._foldmap.get(normed, None)
381 381 if folded is None:
382 382 if isknown or not os.path.lexists(os.path.join(self._root, path)):
@@ -164,6 +164,10 b' def samedevice(fpath1, fpath2):'
164 164 st2 = os.lstat(fpath2)
165 165 return st1.st_dev == st2.st_dev
166 166
167 # os.path.normcase is a no-op, which doesn't help us on non-native filesystems
168 def normcase(path):
169 return path.lower()
170
167 171 if sys.platform == 'darwin':
168 172 import fcntl # only needed on darwin, missing on jython
169 173 def realpath(path):
@@ -44,6 +44,7 b' lookupreg = platform.lookupreg'
44 44 makedir = platform.makedir
45 45 nlinks = platform.nlinks
46 46 normpath = platform.normpath
47 normcase = platform.normcase
47 48 nulldev = platform.nulldev
48 49 openhardlinks = platform.openhardlinks
49 50 oslink = platform.oslink
@@ -131,6 +131,8 b' def localpath(path):'
131 131 def normpath(path):
132 132 return pconvert(os.path.normpath(path))
133 133
134 normcase = os.path.normcase
135
134 136 def realpath(path):
135 137 '''
136 138 Returns the true, canonical file system path equivalent to the given
@@ -165,15 +165,15 b' divergent nested renames (issue3089)'
165 165 a => b
166 166 $ mkdir a
167 167 $ bzr add a
168 adding a
168 add(ed|ing) a (re)
169 169 $ bzr mv b/c a/c
170 170 b/c => a/c
171 171 $ bzr status
172 172 added:
173 173 a/
174 174 renamed:
175 a/ => b/
176 a/c/ => a/c/
175 a/? => b/? (re)
176 a/c/? => a/c/? (re)
177 177 $ bzr commit -q -m 'Divergent renames'
178 178 $ cd ..
179 179 $ hg convert source source-hg
General Comments 0
You need to be logged in to leave comments. Login now