diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py --- a/mercurial/narrowspec.py +++ b/mercurial/narrowspec.py @@ -153,7 +153,7 @@ def restorebackup(repo, backupname): if repository.NARROW_REQUIREMENT not in repo.requirements: return - repo.vfs.rename(backupname, FILENAME, checkambig=True) + repo.vfs.rename(backupname, FILENAME) def clearbackup(repo, backupname): if repository.NARROW_REQUIREMENT not in repo.requirements: