diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-10 22:59:39 +0200 |
---|---|---|
committer | Yann Dirson <ydirson@altern.org> | 2006-06-10 22:59:39 +0200 |
commit | 4e3aa38681c849d6931dd56d958fff6abf3ea38e (patch) | |
tree | 53325909172dd0fe473c30aaadee17629fd7a1ad | |
parent | bb6b1ea1a785e10bee7bfba294012a821ddc3bd1 (diff) | |
download | cvsps-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |