# HG changeset patch # User Matt Mackall # Date 2011-10-02 18:02:15 # Node ID 6dc67dced8c122f6139ae20ccdc03a6b11e8b765 # Parent dc360709cea92865fe5716ac75dc2fe265f1b0cb subrepo: improve error message when svn isn't found subprocess was returning the following unhelpful message: abort: No such file or directory diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -548,9 +548,13 @@ class svnsubrepo(abstractsubrepo): 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