# HG changeset patch # User Patrick Mezard # Date 2008-03-23 17:52:02 # Node ID 9b21faa6f01310984f4108ec0d5e7d7963dfb28b # Parent 95413879bac91c06a65c3f67a71d5f186ad7d82c hgk: display orphan revisions content (issue 1041) diff --git a/contrib/hgk b/contrib/hgk --- a/contrib/hgk +++ b/contrib/hgk @@ -2339,8 +2339,12 @@ proc selectline {l isnew} { $cflist delete 0 end $cflist insert end "Comments" + if {$nparents($id) <= 1} { + set parent "null" if {$nparents($id) == 1} { - startdiff [concat $id $parents($id)] + set parent $parents($id) + } + startdiff [concat $id $parent] } elseif {$nparents($id) > 1} { mergediff $id }