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

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import os
23
23
 
24
 
from bzrlib.commands import Command
 
24
from .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
 
 
48
47
    def __init__(self, path):
49
48
        self.path = path
50
49
 
61
60
        m = 'external command from %s\n\n' % self.path
62
61
        pipe = os.popen('%s --help' % self.path)
63
62
        return m + pipe.read()
64