Show More
@@ -1006,6 +1006,12 b' class localrepository(repo.repository):' | |||||
1006 | for f in list: |
|
1006 | for f in list: | |
1007 | p = self.wjoin(f) |
|
1007 | p = self.wjoin(f) | |
1008 | islink = os.path.islink(p) |
|
1008 | islink = os.path.islink(p) | |
|
1009 | size = os.lstat(p).st_size | |||
|
1010 | if size > 10000000: | |||
|
1011 | self.ui.warn(_("%s: files over 10MB may cause memory and" | |||
|
1012 | " performance problems\n" | |||
|
1013 | "(use 'hg revert %s' to unadd the file)\n") | |||
|
1014 | % (f, f)) | |||
1009 | if not islink and not os.path.exists(p): |
|
1015 | if not islink and not os.path.exists(p): | |
1010 | self.ui.warn(_("%s does not exist!\n") % f) |
|
1016 | self.ui.warn(_("%s does not exist!\n") % f) | |
1011 | elif not islink and not os.path.isfile(p): |
|
1017 | elif not islink and not os.path.isfile(p): |
General Comments 0
You need to be logged in to leave comments.
Login now