Changeset 7af4448bcbb7…
Parent ca89e13351fd…
by
Changes to one file · Browse files at 7af4448bcbb7 Showing diff from parent ca89e13351fd Diff from another changeset...
@@ -592,12 +592,16 @@ 'include':[], 'exclude':[]
}
- cfiles = [util.canonpath(root, cwd, f) for f in files if os.path.isfile(f)]
-
dialog = DataMineDialog(u, repo, cwd, files, cmdoptions, True)
dialog.display()
- for f in cfiles:
- dialog.add_annotate_page(f, '.')
+ for f in files:
+ if os.path.isfile(f):
+ cf = util.canonpath(root, cwd, f)
+ dialog.add_annotate_page(cf, '.')
+ elif os.path.isdir(f):
+ Prompt('Invalid path', "Can't annotate directory: %s" % f,
+ dialog).run()
+
if not dialog.notebook.get_n_pages():
dialog.add_search_page()
|
Loading...