# HG changeset patch # User Matt Harbison # Date 2015-01-12 04:25:23 # Node ID b95b9fd7ba29d0cb27538b1d7bffb1b2b4acf7ce # Parent 2b79d124a12fb911cf9aff61232be3af3b174527 forget: don't report rejected files as forgotten as well It seems like a mistake to report a file as forgotten and rejected. The forgotten list doesn't seem to be used by anything in core, so no test changes. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2057,7 +2057,7 @@ def forget(ui, repo, match, prefix, expl rejected = wctx.forget(forget, prefix) bad.extend(f for f in rejected if f in match.files()) - forgot.extend(forget) + forgot.extend(f for f in forget if f not in rejected) return bad, forgot def remove(ui, repo, m, prefix, after, force, subrepos):