comparison hgext/mq.py @ 11709:3e561b6af810 stable

mq: clarify the fact that qimport is trying to read a file "hg qimport tip" would throw "abort: unable to read tip" before this.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sat, 31 Jul 2010 10:50:29 +0900
parents 64f284da1278
children aae1dd12fce6 4f9dfb54c8b5
comparison
equal deleted inserted replaced
11707:13d79a7bf5b7 11709:3e561b6af810
1700 _('need --name to import a patch from -')) 1700 _('need --name to import a patch from -'))
1701 text = sys.stdin.read() 1701 text = sys.stdin.read()
1702 else: 1702 else:
1703 text = url.open(self.ui, filename).read() 1703 text = url.open(self.ui, filename).read()
1704 except (OSError, IOError): 1704 except (OSError, IOError):
1705 raise util.Abort(_("unable to read %s") % filename) 1705 raise util.Abort(_("unable to read file %s") % filename)
1706 if not patchname: 1706 if not patchname:
1707 patchname = normname(os.path.basename(filename)) 1707 patchname = normname(os.path.basename(filename))
1708 self.check_reserved_name(patchname) 1708 self.check_reserved_name(patchname)
1709 checkfile(patchname) 1709 checkfile(patchname)
1710 patchf = self.opener(patchname, "w") 1710 patchf = self.opener(patchname, "w")