Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Fix bug in the anc_or_desc routine
author
Paul Mackerras
<paulus@samba.org>
Wed, 4 Jul 2007 11:57:04 +0000
(21:57 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 4 Jul 2007 11:57:04 +0000
(21:57 +1000)
I missed the case where both nodes have no children and therefore
have no incoming arcs. This fixes it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4fb0fa1
)
diff --git
a/gitk
b/gitk
index d5091454903b54b48a80752368a8f670ee718abb..767b0ed8b87d0a36f76adc004e3c2781781dbaa2 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-6261,7
+6261,8
@@
proc anc_or_desc {a b} {
# Both are on the same arc(s); either both are the same BMP,
# or if one is not a BMP, the other is also not a BMP or is
# the BMP at end of the arc (and it only has 1 incoming arc).
- if {$a eq $b} {
+ # Or both can be BMPs with no incoming arcs.
+ if {$a eq $b || $arcnos($a) eq {}} {
return 0
}
# assert {[llength $arcnos($a)] == 1}