Mercurial > public > mercurial-scm > hg
comparison mercurial/sshrepo.py @ 6953:63b5f4c73c98
i18n: mark strings for translation in Mercurial
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Sun, 31 Aug 2008 16:12:02 +0200 |
parents | c5580db9c3aa |
children | 4674706b5b95 |
comparison
equal
deleted
inserted
replaced
6952:3fffba1c87d0 | 6953:63b5f4c73c98 |
---|---|
40 | 40 |
41 if create: | 41 if create: |
42 cmd = '%s %s "%s init %s"' | 42 cmd = '%s %s "%s init %s"' |
43 cmd = cmd % (sshcmd, args, remotecmd, self.path) | 43 cmd = cmd % (sshcmd, args, remotecmd, self.path) |
44 | 44 |
45 ui.note('running %s\n' % cmd) | 45 ui.note(_('running %s\n') % cmd) |
46 res = util.system(cmd) | 46 res = util.system(cmd) |
47 if res != 0: | 47 if res != 0: |
48 self.raise_(repo.RepoError(_("could not create remote repo"))) | 48 self.raise_(repo.RepoError(_("could not create remote repo"))) |
49 | 49 |
50 self.validate_repo(ui, sshcmd, args, remotecmd) | 50 self.validate_repo(ui, sshcmd, args, remotecmd) |
58 | 58 |
59 cmd = '%s %s "%s -R %s serve --stdio"' | 59 cmd = '%s %s "%s -R %s serve --stdio"' |
60 cmd = cmd % (sshcmd, args, remotecmd, self.path) | 60 cmd = cmd % (sshcmd, args, remotecmd, self.path) |
61 | 61 |
62 cmd = util.quotecommand(cmd) | 62 cmd = util.quotecommand(cmd) |
63 ui.note('running %s\n' % cmd) | 63 ui.note(_('running %s\n') % cmd) |
64 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b') | 64 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b') |
65 | 65 |
66 # skip any noise generated by remote shell | 66 # skip any noise generated by remote shell |
67 self.do_cmd("hello") | 67 self.do_cmd("hello") |
68 r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40))) | 68 r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40))) |