/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/externalcommand.py

  • Committer: Andrew Bennetts
  • Date: 2011-06-09 07:38:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5964.
  • Revision ID: andrew.bennetts@canonical.com-20110609073832-dt6oww033iexli4l
Fix thinko in wording regarding stacking invariants and revisions with multiple parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import os
23
23
 
24
 
from .commands import Command
 
24
from bzrlib.commands import Command
25
25
 
26
26
 
27
27
class ExternalCommand(Command):
33
33
        bzrpath = os.environ.get('BZRPATH', '')
34
34
 
35
35
        for dir in bzrpath.split(os.pathsep):
36
 
            # Empty directories are not real paths
 
36
            ## Empty directories are not real paths
37
37
            if not dir:
38
38
                continue
39
39
            # This needs to be os.path.join() or windows cannot
44
44
 
45
45
        return None
46
46
 
 
47
 
47
48
    def __init__(self, path):
48
49
        self.path = path
49
50
 
60
61
        m = 'external command from %s\n\n' % self.path
61
62
        pipe = os.popen('%s --help' % self.path)
62
63
        return m + pipe.read()
 
64