Mercurial > hgsubversion
comparison hgsubversion/svnexternals.py @ 470:6bfaa9deb432
svnexternals: display svn commands output with --verbose
Really useful to debug svn connectivity or locking problems.
| author | Patrick Mezard <pmezard@gmail.com> |
|---|---|
| date | Sat, 18 Jul 2009 20:44:33 -0500 |
| parents | f6050c4dde31 |
| children | 6e18d9ab6557 |
comparison
equal
deleted
inserted
replaced
| 469:5567af673f83 | 470:6bfaa9deb432 |
|---|---|
| 240 | 240 |
| 241 def svn(self, args, cwd): | 241 def svn(self, args, cwd): |
| 242 args = ['svn'] + args | 242 args = ['svn'] + args |
| 243 self.ui.debug(_('updating externals: %r, cwd=%s\n') % (args, cwd)) | 243 self.ui.debug(_('updating externals: %r, cwd=%s\n') % (args, cwd)) |
| 244 shell = os.name == 'nt' | 244 shell = os.name == 'nt' |
| 245 r = subprocess.call(args, cwd=cwd, shell=shell, | 245 p = subprocess.Popen(args, cwd=cwd, shell=shell, |
| 246 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | 246 stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
| 247 if r != 0: raise hgutil.Abort("subprocess '%s' failed" % ' '.join(args)) | 247 for line in p.stdout: |
| 248 self.ui.note(line) | |
| 249 p.wait() | |
| 250 if p.returncode != 0: | |
| 251 raise hgutil.Abort("subprocess '%s' failed" % ' '.join(args)) | |
| 248 | 252 |
| 249 def updateexternals(ui, args, repo, **opts): | 253 def updateexternals(ui, args, repo, **opts): |
| 250 """update repository externals | 254 """update repository externals |
| 251 """ | 255 """ |
| 252 if len(args) > 2: | 256 if len(args) > 2: |
