Mercurial > hg
changeset 15190:6dc67dced8c1
subrepo: improve error message when svn isn't found
subprocess was returning the following unhelpful message:
abort: No such file or directory
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 02 Oct 2011 13:02:15 -0500 |
parents | dc360709cea9 |
children | 3834ca04664a |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Sat Oct 01 16:19:33 2011 -0500 +++ b/mercurial/subrepo.py Sun Oct 02 13:02:15 2011 -0500 @@ -548,9 +548,13 @@ self._state = state self._ctx = ctx self._ui = ctx._repo.ui + self._exe = util.findexe('svn') + if not self._exe: + raise util.Abort(_("'svn' executable not found for subrepo '%s'") + % self._path) def _svncommand(self, commands, filename='', failok=False): - cmd = ['svn'] + cmd = [self._exe] extrakw = {} if not self._ui.interactive(): # Making stdin be a pipe should prevent svn from behaving