changeset 12173:5b849148b620

add: clarify that repo[None].add returns rejected filenames
author Martin Geisler <mg@lazybytes.net>
date Tue, 07 Sep 2010 10:30:29 +0200
parents 74f54b7775f2
children 7bccd04292a2
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):