Commits

php committed 5e4dfb9

Add --mbox option

  • Participants
  • Parent commits ccfcb53

Comments (0)

Files changed (1)

 
     ? - display help
     """
-    paths = ui.config('mbox', 'paths', '').split(os.pathsep)
+    if opts['mbox']:
+        paths = [opts['mbox']]
+    else:
+        paths = ui.config('mbox', 'paths', '').split(os.pathsep)
     paths = [p.strip() for p in paths if p]
     if not paths:
         raise util.Abort(_('no mailbox path configured'))
     cmdtable['mimport'] = (
         mimport, 
         [('d', 'date', '', _('show patches matching date spec')),
+         ('m', 'mbox', '', _('path to an mbox to parse')),
          ], 
         _('hg mimport PATTERN...'))