Commits

Anonymous committed 6da05e6

update: fix bug when using -d with empty modules

  • Participants
  • Parent commits 710d71c

Comments (0)

Files changed (1)

File repoman/cmdutil.py

 
     for mod in modules:
         repo = f[mod]
+        if not len(repo):
+            ui.write_module_header(mod)
+            ui.write('skipped; no revisions.\n\n')
+            continue
+
         meta_candidates = set([repo[branchmap[mod]].rev() for rev, branchmap in branchmaps if mod in branchmap])
         repo_candidates = set([r.rev() for r in find_candidates(repo[nodes[mod]])])
         candidates = sorted(meta_candidates | repo_candidates)