Mercurial > hgsubversion
comparison svnexternals.py @ 325:4f4db3d2fdbb
2.4 compat fixes.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Mon, 18 May 2009 17:09:26 -0500 |
| parents | 963d27a0b1c2 |
| children |
comparison
equal
deleted
inserted
replaced
| 324:c4061e57974c | 325:4f4db3d2fdbb |
|---|---|
| 238 | 238 |
| 239 def svn(self, args, cwd): | 239 def svn(self, args, cwd): |
| 240 args = ['svn'] + args | 240 args = ['svn'] + args |
| 241 self.ui.debug(_('updating externals: %r, cwd=%s\n') % (args, cwd)) | 241 self.ui.debug(_('updating externals: %r, cwd=%s\n') % (args, cwd)) |
| 242 shell = os.name == 'nt' | 242 shell = os.name == 'nt' |
| 243 subprocess.check_call(args, cwd=cwd, shell=shell) | 243 if subprocess.call(args, cwd=cwd, shell=shell) != 0: |
| 244 raise hgutil.Abort("subprocess '%s' failed" % ' '.join(args)) | |
| 244 | 245 |
| 245 def updateexternals(ui, args, repo, **opts): | 246 def updateexternals(ui, args, repo, **opts): |
| 246 """update repository externals | 247 """update repository externals |
| 247 """ | 248 """ |
| 248 if len(args) > 1: | 249 if len(args) > 1: |
| 276 updater.delete(ext[0]) | 277 updater.delete(ext[0]) |
| 277 else: | 278 else: |
| 278 raise hgutil.Abort(_('unknown update actions: %r') % action) | 279 raise hgutil.Abort(_('unknown update actions: %r') % action) |
| 279 | 280 |
| 280 file(repo.join('svn/externals'), 'wb').write(newext) | 281 file(repo.join('svn/externals'), 'wb').write(newext) |
| 281 |
