Skip to content

Commit

Permalink
gitview: Move the console error messages to message dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Aneesh Kumar K.V authored and Junio C Hamano committed May 28, 2006
1 parent 0340163 commit 7569443
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions contrib/gitview/gitview
Original file line number Diff line number Diff line change
Expand Up @@ -983,10 +983,15 @@ class GitView:
try:
self.treeview.set_cursor(self.index[revid])
except KeyError:
print "Revision %s not present in the list" % revid
dialog = gtk.MessageDialog(parent=None, flags=0,
type=gtk.MESSAGE_WARNING, buttons=gtk.BUTTONS_CLOSE,
message_format=None)
dialog.set_markup("Revision <b>%s</b> not present in the list" % revid)
# revid == 0 is the parent of the first commit
if (revid != 0 ):
print "Try running gitview without any options"
dialog.format_secondary_text("Try running gitview without any options")
dialog.run()
dialog.destroy()

self.treeview.grab_focus()

Expand Down

0 comments on commit 7569443

Please sign in to comment.