##// END OF EJS Templates
localrepo: more specific warning on adding large files...
Martin Geisler -
r10725:00d46934 stable
parent child Browse files
Show More
@@ -1091,10 +1091,11 b' class localrepository(repo.repository):'
1091 rejected.append(f)
1091 rejected.append(f)
1092 continue
1092 continue
1093 if st.st_size > 10000000:
1093 if st.st_size > 10000000:
1094 self.ui.warn(_("%s: files over 10MB may cause memory and"
1094 self.ui.warn(_("%s: up to %d MB of RAM may be required "
1095 " performance problems\n"
1095 "to manage this file\n"
1096 "(use 'hg revert %s' to unadd the file)\n")
1096 "(use 'hg revert %s' to cancel the "
1097 % (f, f))
1097 "pending addition)\n")
1098 % (f, 3 * st.st_size // 1000000, f))
1098 if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)):
1099 if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)):
1099 self.ui.warn(_("%s not added: only files and symlinks "
1100 self.ui.warn(_("%s not added: only files and symlinks "
1100 "supported currently\n") % f)
1101 "supported currently\n") % f)
General Comments 0
You need to be logged in to leave comments. Login now