Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 14004:97ed99d1f419
eliminate various naked except clauses
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 23 Apr 2011 00:51:25 +0300 |
parents | 8b252e826c68 |
children | 81e6d42b3228 |
comparison
equal
deleted
inserted
replaced
14003:ba734ff5cadd | 14004:97ed99d1f419 |
---|---|
803 for f in list: | 803 for f in list: |
804 scmutil.checkportable(ui, join(f)) | 804 scmutil.checkportable(ui, join(f)) |
805 p = self._repo.wjoin(f) | 805 p = self._repo.wjoin(f) |
806 try: | 806 try: |
807 st = os.lstat(p) | 807 st = os.lstat(p) |
808 except: | 808 except OSError: |
809 ui.warn(_("%s does not exist!\n") % join(f)) | 809 ui.warn(_("%s does not exist!\n") % join(f)) |
810 rejected.append(f) | 810 rejected.append(f) |
811 continue | 811 continue |
812 if st.st_size > 10000000: | 812 if st.st_size > 10000000: |
813 ui.warn(_("%s: up to %d MB of RAM may be required " | 813 ui.warn(_("%s: up to %d MB of RAM may be required " |