'Populate a subtree'

def populate_dir(self, parent, path):

    (dirs, paths) = gitcmds.listdir(path)
    for dirname in dirs:
        self.add_directory(parent, dirname)
        self.update_entry(dirname)
    for filename in paths:
        self.add_file(parent, filename)
        self.update_entry(filename)
