/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Aaron Bentley
  • Date: 2007-12-28 16:37:46 UTC
  • mto: This revision was merged to the branch mainline in revision 3154.
  • Revision ID: abentley@panoramicfeedback.com-20071228163746-975r76opsppiwstk
Handle missing tools gracefully in diff --using

Show diffs side-by-side

added added

removed removed

Lines of Context:
773
773
        return [t % my_map for t in self.command_template]
774
774
 
775
775
    def _execute(self, old_path, new_path):
776
 
        proc = subprocess.Popen(self._get_command(old_path, new_path),
777
 
                                stdout=subprocess.PIPE, cwd=self._root)
 
776
        command = self._get_command(old_path, new_path)
 
777
        try:
 
778
            proc = subprocess.Popen(command, stdout=subprocess.PIPE,
 
779
                                    cwd=self._root)
 
780
        except OSError, e:
 
781
            if e.errno == errno.ENOENT:
 
782
                raise errors.ExecutableMissing(command[0])
778
783
        self.to_file.write(proc.stdout.read())
779
784
        return proc.wait()
780
785