Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 4833:fc8b3e7cbf6b
improve warning for hg add foo; hg mv foo bar
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 11 Jul 2007 19:56:16 -0300 |
parents | 7db38bfb307e |
children | 9858477ed74c |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jul 11 18:15:21 2007 -0300 +++ b/mercurial/commands.py Wed Jul 11 19:56:16 2007 -0300 @@ -533,9 +533,10 @@ targets[abstarget] = abssrc if abstarget != origsrc: if repo.dirstate.state(origsrc) == 'a': - ui.warn(_("%s was marked for addition. " - "%s will not be committed as a copy.\n") - % (repo.pathto(origsrc, cwd), reltarget)) + if not ui.quiet: + ui.warn(_("%s has not been committed yet, so no copy " + "data will be stored for %s.\n") + % (repo.pathto(origsrc, cwd), reltarget)) if abstarget not in repo.dirstate and not opts.get('dry_run'): repo.add([abstarget], wlock) elif not opts.get('dry_run'):