~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/externalcommand.py

  • Committer: Robert Collins
  • Date: 2005-10-11 08:31:29 UTC
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051011083129-fa720bc6cd6c039f
inline and simplify branch.find_branch_root, it should just try to create a branch at each step, which is simpler than probing for a specific dir and has less round trips.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import os
23
23
import sys
 
24
 
24
25
from bzrlib.commands import Command
25
26
 
26
27
 
43
44
    def __init__(self, path):
44
45
        self.path = path
45
46
 
46
 
 
 
47
 
47
48
    def name(self):
48
49
        return self.path.split(os.sep)[-1]
49
50