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

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    option,
45
45
    osutils,
46
46
    trace,
 
47
    win32utils,
47
48
    )
48
49
""")
49
50
 
240
241
        if self.__doc__ == Command.__doc__:
241
242
            warn("No help message set for %r" % self)
242
243
 
 
244
    def _maybe_expand_globs(self, file_list):
 
245
        """Glob expand file_list if the platform does not do that itself.
 
246
        
 
247
        :return: A possibly empty list of unicode paths.
 
248
 
 
249
        Introduced in bzrlib 0.18.
 
250
        """
 
251
        if not file_list:
 
252
            file_list = []
 
253
        if sys.platform == 'win32':
 
254
            file_list = win32utils.glob_expand(file_list)
 
255
        return list(file_list)
 
256
 
243
257
    def _usage(self):
244
258
        """Return single-line grammar for this command.
245
259
 
318
332
 
319
333
        Maps from long option name to option object."""
320
334
        r = dict()
321
 
        r['help'] = option.Option.OPTIONS['help']
 
335
        r['help'] = option._help_option
322
336
        for o in self.takes_options:
323
337
            if isinstance(o, basestring):
324
338
                o = option.Option.OPTIONS[o]