comparison mercurial/localrepo.py @ 4060:82eb0fafb56d

commit: catch IOError filecommit can still raise IOError if we're on a filesystem without support for symlinks.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 30 Jan 2007 21:11:10 -0200
parents 431f3c1d3a37
children 961ccb615cf7
comparison
equal deleted inserted replaced
4059:431f3c1d3a37 4060:82eb0fafb56d
746 for f in commit: 746 for f in commit:
747 self.ui.note(f + "\n") 747 self.ui.note(f + "\n")
748 try: 748 try:
749 new[f] = self.filecommit(f, m1, m2, linkrev, tr, changed) 749 new[f] = self.filecommit(f, m1, m2, linkrev, tr, changed)
750 m1.set(f, is_exec(f), is_link(f)) 750 m1.set(f, is_exec(f), is_link(f))
751 except OSError: 751 except (OSError, IOError):
752 if use_dirstate: 752 if use_dirstate:
753 self.ui.warn(_("trouble committing %s!\n") % f) 753 self.ui.warn(_("trouble committing %s!\n") % f)
754 raise 754 raise
755 else: 755 else:
756 remove.append(f) 756 remove.append(f)