# HG changeset patch # User Martin von Zweigbergk # Date 2018-08-03 20:53:02 # Node ID 204e074c188e3c5fb0aef9350c10f54de6d03002 # Parent ae2962bb56a340e4bc66292ee4daafc0650f128a narrow: drop checkambig=True when restoring backup IIUC, checkambig is about updating timestamps of the file while renaming. That's important for the dirstate, but we never check the timestamp of the narrowspec file. We can therefore avoid checking passing checkambig=True. Differential Revision: https://phab.mercurial-scm.org/D4098 diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py --- a/mercurial/narrowspec.py +++ b/mercurial/narrowspec.py @@ -137,7 +137,7 @@ def savebackup(repo, backupname): 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: