~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 22:09:44 UTC
  • mfrom: (540.1.2 bzrtools-0.17)
  • Revision ID: aaron.bentley@utoronto.ca-20070612220944-5zw4hlzp1ctq6mkl
Merge fixes from 0.17

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