changeset 22189:cde6b489365c

revert: drop special case handling for file unknown in parent We had a special case for file not caught by any categories. It was aimed at files missing in wc and wc's parent but existing in the target revision. This is now properly handled using status information.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 24 Jun 2014 16:57:16 +0100
parents 0ad619c5e1a4
children 55308ab8117c
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jun 24 16:53:22 2014 +0100
+++ b/mercurial/cmdutil.py	Tue Jun 24 16:57:16 2014 +0100
@@ -2495,9 +2495,7 @@
 
                 # file is unknown in parent, restore older version or ignore.
                 if abs not in repo.dirstate:
-                    if mfentry:
-                        handle(actions['add'], True)
-                    elif exact:
+                    if exact:
                         ui.warn(_('file not managed: %s\n') % rel)
                     continue