Show More
@@ -177,11 +177,14 b' class abstractvfs(object):' | |||
|
177 | 177 | dstpath = self.join(dst) |
|
178 | 178 | oldstat = checkambig and util.filestat(dstpath) |
|
179 | 179 | if oldstat and oldstat.stat: |
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 | # stat of renamed file is ambiguous to original one | |
|
184 | newstat.avoidambig(dstpath, oldstat) | |
|
180 | def dorename(spath, dpath): | |
|
181 | ret = util.rename(spath, dpath) | |
|
182 | newstat = util.filestat(dpath) | |
|
183 | if newstat.isambig(oldstat): | |
|
184 | # stat of renamed file is ambiguous to original one | |
|
185 | return ret, newstat.avoidambig(dpath, oldstat) | |
|
186 | return ret, True | |
|
187 | ret, avoided = dorename(self.join(src), dstpath) | |
|
185 | 188 | return ret |
|
186 | 189 | return util.rename(self.join(src), dstpath) |
|
187 | 190 |
General Comments 0
You need to be logged in to leave comments.
Login now