add: clarify that repo[None].add returns rejected filenames
authorMartin Geisler <mg@lazybytes.net>
Tue, 07 Sep 2010 10:30:29 +0200
changeset 12173 5b849148b620
parent 12172 74f54b7775f2
child 12174 7bccd04292a2
add: clarify that repo[None].add returns rejected filenames
mercurial/commands.py
--- a/mercurial/commands.py	Mon Sep 06 07:14:18 2010 +0200
+++ b/mercurial/commands.py	Tue Sep 07 10:30:29 2010 +0200
@@ -59,7 +59,8 @@
             if ui.verbose or not exact:
                 ui.status(_('adding %s\n') % m.rel(f))
     if not opts.get('dry_run'):
-        bad += [f for f in repo[None].add(names) if f in m.files()]
+        rejected = repo[None].add(names)
+        bad += [f for f in rejected if f in m.files()]
     return bad and 1 or 0
 
 def addremove(ui, repo, *pats, **opts):