revert: drop `lexist` check in the backup logic
authorPierre-Yves David <pierre-yves.david@fb.com>
Sat, 30 Aug 2014 02:10:29 +0200
changeset 22398 402e5fba6509
parent 22397 1db04829bdc1
child 22399 9f490afcb067
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.
mercurial/cmdutil.py
--- 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))