# HG changeset patch # User Pierre-Yves David # Date 1403625436 -3600 # Node ID cde6b489365cc042476e95f850d8e2b42799e41f # Parent 0ad619c5e1a4e54e78518ac645f7d28fe17fb805 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. diff -r 0ad619c5e1a4 -r cde6b489365c mercurial/cmdutil.py --- 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