Commits

Peter Arrenbrecht committed 94abe45

hggtk/gdialog: handle empty cmd.differ entries in hgrc like hg does

Case in point:

[extdiff]
cmd.meld =

works in hg as `hg meld`, but failed in thg when I selected meld
as my differ.

  • Participants
  • Parent commits 037ba7e

Comments (0)

Files changed (1)

             # default to tortoisehg's configuration
             vdiff = self.ui.config('tortoisehg', 'vdiff')
             if vdiff:
-                self.diffcmd = self.ui.config('extdiff', 'cmd.'+vdiff)
+                self.diffcmd = self.ui.config('extdiff', 'cmd.'+vdiff) or vdiff
             else:
                 self.diffcmd = 'diff'
                 if not self.diffopts :