mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
merge: use repo.wvfs.unlinkpath
This commit is contained in:
parent
a936a7f3a7
commit
01ac38526d
@ -1060,8 +1060,7 @@ def batchremove(repo, actions):
|
|||||||
yields tuples for progress updates
|
yields tuples for progress updates
|
||||||
"""
|
"""
|
||||||
verbose = repo.ui.verbose
|
verbose = repo.ui.verbose
|
||||||
unlink = util.unlinkpath
|
unlinkpath = repo.wvfs.unlinkpath
|
||||||
wjoin = repo.wjoin
|
|
||||||
audit = repo.wvfs.audit
|
audit = repo.wvfs.audit
|
||||||
try:
|
try:
|
||||||
cwd = pycompat.getcwd()
|
cwd = pycompat.getcwd()
|
||||||
@ -1076,7 +1075,7 @@ def batchremove(repo, actions):
|
|||||||
repo.ui.note(_("removing %s\n") % f)
|
repo.ui.note(_("removing %s\n") % f)
|
||||||
audit(f)
|
audit(f)
|
||||||
try:
|
try:
|
||||||
unlink(wjoin(f), ignoremissing=True)
|
unlinkpath(f, ignoremissing=True)
|
||||||
except OSError as inst:
|
except OSError as inst:
|
||||||
repo.ui.warn(_("update failed to remove %s: %s!\n") %
|
repo.ui.warn(_("update failed to remove %s: %s!\n") %
|
||||||
(f, inst.strerror))
|
(f, inst.strerror))
|
||||||
|
Loading…
Reference in New Issue
Block a user