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