summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-06-10 22:59:39 +0200
committerYann Dirson <ydirson@altern.org>2006-06-10 22:59:39 +0200
commit4e3aa38681c849d6931dd56d958fff6abf3ea38e (patch)
tree53325909172dd0fe473c30aaadee17629fd7a1ad
parentbb6b1ea1a785e10bee7bfba294012a821ddc3bd1 (diff)
downloadcvsps-4e3aa38681c849d6931dd56d958fff6abf3ea38e.tar.gz
Fix branch ancestor calculation
Not having any ancestor at all means that any valid ancestor (even of "depth 0") is fine.
-rw-r--r--cvsps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cvsps.c b/cvsps.c
index c22147e..2695a0f 100644
--- a/cvsps.c
+++ b/cvsps.c
@@ -2599,7 +2599,7 @@ static void determine_branch_ancestor(PatchSet * ps, PatchSet * head_ps)
* note: rev is the pre-commit revision, not the post-commit
*/
if (!head_ps->ancestor_branch)
- d1 = 0;
+ d1 = -1;
else if (strcmp(ps->branch, rev->branch) == 0)
continue;
else if (strcmp(head_ps->ancestor_branch, "HEAD") == 0)