##// END OF EJS Templates
vfs: add explanation about cost of checkambig=True in corner case
FUJIWARA Katsunori -
r33282:d1db7af8 default
parent child Browse files
Show More
@@ -190,6 +190,11 b' class abstractvfs(object):'
190 190 checkambig argument is used with util.filestat, and is useful
191 191 only if destination file is guarded by any lock
192 192 (e.g. repo.lock or repo.wlock).
193
194 To avoid file stat ambiguity forcibly, checkambig=True involves
195 copying ``src`` file, if it is owned by another. Therefore, use
196 checkambig=True only in limited cases (see also issue5418 and
197 issue5584 for detail).
193 198 """
194 199 srcpath = self.join(src)
195 200 dstpath = self.join(dst)
@@ -343,6 +348,12 b' class vfs(abstractvfs):'
343 348 ``checkambig`` argument is passed to atomictemplfile (valid
344 349 only for writing), and is useful only if target file is
345 350 guarded by any lock (e.g. repo.lock or repo.wlock).
351
352 To avoid file stat ambiguity forcibly, checkambig=True involves
353 copying ``path`` file opened in "append" mode (e.g. for
354 truncation), if it is owned by another. Therefore, use
355 combination of append mode and checkambig=True only in limited
356 cases (see also issue5418 and issue5584 for detail).
346 357 '''
347 358 if auditpath:
348 359 if self._audit:
General Comments 0
You need to be logged in to leave comments. Login now