diff mercurial/cext/dirs.c @ 47948:83f0e93ec34b

dirstate-item: move the C implementation to the same logic Now that we know were we are going, we can update the C implementation. Differential Revision: https://phab.mercurial-scm.org/D11387
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 30 Aug 2021 21:18:29 +0200
parents e02f9af7aed1
children 9b0f173445d1
line wrap: on
line diff
--- a/mercurial/cext/dirs.c	Tue Aug 31 09:23:50 2021 +0200
+++ b/mercurial/cext/dirs.c	Mon Aug 30 21:18:29 2021 +0200
@@ -177,7 +177,8 @@
 				                "expected a dirstate tuple");
 				return -1;
 			}
-			if (((dirstateItemObject *)value)->state == 'r')
+			if (!(((dirstateItemObject *)value)->flags &
+			      dirstate_flag_wc_tracked))
 				continue;
 		}