diff mercurial/narrowspec.py @ 46645:ced66295ea90

narrow: remove assertion about working copy being clean The user can always modify the working copy, including while they're running `hg tracked --remove-include <path>`. Nothing really bad happens when they do that, and we already have code for printing a nice warning, so we can safely remove the assertion we had. Differential Revision: https://phab.mercurial-scm.org/D10063
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 23 Feb 2021 22:58:30 -0800
parents 89a2afe31e82
children e4ccc341e65b
line wrap: on
line diff
--- a/mercurial/narrowspec.py	Tue Feb 23 22:55:26 2021 -0800
+++ b/mercurial/narrowspec.py	Tue Feb 23 22:58:30 2021 -0800
@@ -329,7 +329,6 @@
     trackeddirty = status.modified + status.added
     clean = status.clean
     if assumeclean:
-        assert not trackeddirty
         clean.extend(lookup)
     else:
         trackeddirty.extend(lookup)