Commits

Steve Borho committed c047c91

hggtk/datamine: use cwd to define default include filter

  • Participants
  • Parent commits c19f15c

Comments (0)

Files changed (1)

hggtk/datamine.py

         search_hbox = gtk.HBox()
         regexp = gtk.Entry()
         includes = gtk.Entry()
+        if self.cwd.startswith(self.repo.root):
+            includes.set_text(util.canonpath(self.repo.root, self.cwd, '.'))
         excludes = gtk.Entry()
         search = gtk.Button('Search')
         search_hbox.pack_start(gtk.Label('Regexp:'), False, False, 4)