hgk: display orphan revisions content (issue 1041)
authorPatrick Mezard <pmezard@gmail.com>
Sun, 23 Mar 2008 18:52:02 +0100
changeset 6361 9b21faa6f013
parent 6360 95413879bac9
child 6362 bc3dbdb1d430
hgk: display orphan revisions content (issue 1041)
contrib/hgk
--- a/contrib/hgk	Sun Mar 23 16:07:27 2008 +0100
+++ b/contrib/hgk	Sun Mar 23 18:52:02 2008 +0100
@@ -2339,8 +2339,12 @@
 
     $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
     }