mercurial/parsers.c
branchstable
changeset 19503 f2dfda6ac152
parent 19502 8704477ad3b6
child 19504 2fa303619b4d
--- a/mercurial/parsers.c	Thu Jul 25 14:20:37 2013 -0700
+++ b/mercurial/parsers.c	Thu Jul 25 17:35:53 2013 +0800
@@ -1362,10 +1362,10 @@
 				if (nsp == sp)
 					continue;
 				seen[p] = nsp;
+				interesting[sp] -= 1;
+				if (interesting[sp] == 0 && interesting[nsp] > 0)
+					ninteresting -= 1;
 				interesting[nsp] += 1;
-				interesting[sp] -= 1;
-				if (interesting[sp] == 0)
-					ninteresting -= 1;
 			}
 		}
 		interesting[sv] -= 1;