Mercurial > hg-stable
changeset 10725:00d46934ee35 stable
localrepo: more specific warning on adding large files
With better language as suggested by timeless.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 18 Mar 2010 01:58:26 +0100 |
parents | 47fbbc4845ff |
children | bedef1c228d3 4a70178f9bde |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Mar 15 20:52:22 2010 +0100 +++ b/mercurial/localrepo.py Thu Mar 18 01:58:26 2010 +0100 @@ -1091,10 +1091,11 @@ rejected.append(f) continue if st.st_size > 10000000: - self.ui.warn(_("%s: files over 10MB may cause memory and" - " performance problems\n" - "(use 'hg revert %s' to unadd the file)\n") - % (f, f)) + self.ui.warn(_("%s: up to %d MB of RAM may be required " + "to manage this file\n" + "(use 'hg revert %s' to cancel the " + "pending addition)\n") + % (f, 3 * st.st_size // 1000000, f)) if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)): self.ui.warn(_("%s not added: only files and symlinks " "supported currently\n") % f)