[PATCH] parsers: it should check the other interesting before decreasing ninteresting (issue3984)
elson.wei at gmail.com
elson.wei at gmail.com
Thu Jul 25 04:53:53 CDT 2013
# HG changeset patch
# User Wei, Elson <elson.wei at gmail.com>
# Date 1374744953 -28800
# Thu Jul 25 17:35:53 2013 +0800
# Branch stable
# Node ID 024085d8dd13dcc4db48c7f99ed04c1ca5864597
# Parent 32e502b26983eaa89574835a024a9b035ad72bf4
parsers: it should check the other interesting before decreasing ninteresting (issue3984)
diff --git a/mercurial/parsers.c b/mercurial/parsers.c
--- a/mercurial/parsers.c
+++ b/mercurial/parsers.c
@@ -1359,10 +1359,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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2013-07-25_17-24-40_r19472+.diff
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130725/16409cbe/attachment.bin>
More information about the Mercurial-devel
mailing list