equal
deleted
inserted
replaced
1492 raise util.Abort(_('need --name to import a patch from -')) |
1492 raise util.Abort(_('need --name to import a patch from -')) |
1493 text = sys.stdin.read() |
1493 text = sys.stdin.read() |
1494 else: |
1494 else: |
1495 text = file(filename, 'rb').read() |
1495 text = file(filename, 'rb').read() |
1496 except IOError: |
1496 except IOError: |
1497 raise util.Abort(_("unable to read %s") % patchname) |
1497 raise util.Abort(_("unable to read %s") % filename) |
1498 if not patchname: |
1498 if not patchname: |
1499 patchname = normname(os.path.basename(filename)) |
1499 patchname = normname(os.path.basename(filename)) |
1500 self.check_reserved_name(patchname) |
1500 self.check_reserved_name(patchname) |
1501 checkfile(patchname) |
1501 checkfile(patchname) |
1502 patchf = self.opener(patchname, "w") |
1502 patchf = self.opener(patchname, "w") |