changeset 22398:402e5fba6509

revert: drop `lexist` check in the backup logic We are no longer trying to backup files that do not exist on disk. This check can be safely dropped.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 30 Aug 2014 02:10:29 +0200
parents 1db04829bdc1
children 9f490afcb067
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Aug 30 02:09:53 2014 +0200
+++ b/mercurial/cmdutil.py	Sat Aug 30 02:10:29 2014 +0200
@@ -2576,8 +2576,7 @@
                     continue
                 if xlist is not None:
                     xlist.append(abs)
-                    if (dobackup and os.path.lexists(target)
-                        and wctx[abs].cmp(ctx[abs])):
+                    if (dobackup and wctx[abs].cmp(ctx[abs])):
                         bakname = "%s.orig" % rel
                         ui.note(_('saving current version of %s as %s\n') %
                                 (rel, bakname))