Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/subrepo.py @ 10197:29e3c4a7699b
subrepo: normalize svn output line-endings
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 02 Jan 2010 16:03:25 +0100 |
parents | 572dd10fa308 |
children | c2e2a5e6c36b |
comparison
equal
deleted
inserted
replaced
10196:20d849251fe6 | 10197:29e3c4a7699b |
---|---|
259 | 259 |
260 def _svncommand(self, commands): | 260 def _svncommand(self, commands): |
261 cmd = ['svn'] + commands + [self._path] | 261 cmd = ['svn'] + commands + [self._path] |
262 cmd = [util.shellquote(arg) for arg in cmd] | 262 cmd = [util.shellquote(arg) for arg in cmd] |
263 cmd = util.quotecommand(' '.join(cmd)) | 263 cmd = util.quotecommand(' '.join(cmd)) |
264 write, read, err = util.popen3(cmd) | 264 write, read, err = util.popen3(cmd, newlines=True) |
265 retdata = read.read() | 265 retdata = read.read() |
266 err = err.read().strip() | 266 err = err.read().strip() |
267 if err: | 267 if err: |
268 raise util.Abort(err) | 268 raise util.Abort(err) |
269 return retdata | 269 return retdata |