# HG changeset patch # User Pierre-Yves David # Date 1403650937 -3600 # Node ID 808926c76cacbc6795cdcf9398e6852f9eab1347 # Parent 3c24fb96900f9495dcb3097072e5ce9f2cca18a7 revert: drop dead code for untracked files Untracked files are handled through status now. diff -r 3c24fb96900f -r 808926c76cac mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Jun 25 00:01:30 2014 +0100 +++ b/mercurial/cmdutil.py Wed Jun 25 00:02:17 2014 +0100 @@ -2521,14 +2521,6 @@ elif exact: ui.warn(msg % rel) break - else: - # Not touched in current dirstate. - - # file is unknown in parent, restore older version or ignore. - if abs not in repo.dirstate: - if exact: - ui.warn(_('file not managed: %s\n') % rel) - continue if not opts.get('dry_run'):