~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Aaron Bentley
  • Date: 2006-10-31 16:18:13 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061031161813-b5ed2cbb53efa865
Add script for automated releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
            else:
81
81
                iter = iter_file_completions(self.text)
82
82
                completions.extend(filter_completions(iter, self.text))
83
 
            return completions
 
83
            return completions 
84
84
 
85
85
 
86
86
class PromptCmd(cmd.Cmd):
122
122
    def set_prompt(self):
123
123
        if self.tree is not None:
124
124
            try:
125
 
                prompt_data = (self.tree.branch.nick, self.tree.branch.revno(),
 
125
                prompt_data = (self.tree.branch.nick, self.tree.branch.revno(), 
126
126
                               self.tree.relpath('.'))
127
127
                prompt = " %s:%d/%s" % prompt_data
128
128
            except:
168
168
        alias_args = get_alias(args[0])
169
169
        if alias_args is not None:
170
170
            args[0] = alias_args.pop(0)
171
 
 
 
171
            
172
172
        commandname = args.pop(0)
173
173
        for char in ('|', '<', '>'):
174
174
            commandname = commandname.split(char)[0]
200
200
 
201
201
    def completedefault(self, text, line, begidx, endidx):
202
202
        """Perform completion for native commands.
203
 
 
 
203
        
204
204
        :param text: The text to complete
205
205
        :type text: str
206
206
        :param line: The entire line to complete