[PATCH 4 of 4] revert: drop dead code about untracked file
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Mon Aug 18 23:36:53 UTC 2014
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1403650937 -3600
# Wed Jun 25 00:02:17 2014 +0100
# Node ID 0ffbbdae0528fceaf4a263da2d4f3829193973f4
# Parent cbdd2b77da8097c37c5a93733b4870e15294c93d
revert: drop dead code about untracked file
Untracked file are handled through status now.
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2519,18 +2519,10 @@ def revert(ui, repo, ctx, parents, *pats
msg = msg(abs)
ui.status(msg % rel)
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'):
_performrevert(repo, parents, ctx, actions)
More information about the Mercurial-devel
mailing list