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

  • Committer: Jelmer Vernooij
  • Date: 2018-11-12 01:41:38 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181112014138-3b0zyx91cu3wdq3k
More PEP8 fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
        notified.
364
364
        """
365
365
        _mod_hooks.Hooks.__init__(self, "breezy.status", "hooks")
366
 
        self.add_hook('post_status',
367
 
                      "Called with argument StatusHookParams after Bazaar has "
368
 
                      "displayed the status. StatusHookParams has the attributes "
369
 
                      "(old_tree, new_tree, to_file, versioned, show_ids, short, "
370
 
                      "verbose). The last four arguments correspond to the command "
371
 
                      "line options specified by the user for the status command. "
372
 
                      "to_file is the output stream for writing.",
373
 
                      (2, 3))
374
 
        self.add_hook('pre_status',
375
 
                      "Called with argument StatusHookParams before Bazaar "
376
 
                      "displays the status. StatusHookParams has the attributes "
377
 
                      "(old_tree, new_tree, to_file, versioned, show_ids, short, "
378
 
                      "verbose). The last four arguments correspond to the command "
379
 
                      "line options specified by the user for the status command. "
380
 
                      "to_file is the output stream for writing.",
381
 
                      (2, 3))
 
366
        self.add_hook(
 
367
            'post_status',
 
368
            "Called with argument StatusHookParams after Bazaar has "
 
369
            "displayed the status. StatusHookParams has the attributes "
 
370
            "(old_tree, new_tree, to_file, versioned, show_ids, short, "
 
371
            "verbose). The last four arguments correspond to the command "
 
372
            "line options specified by the user for the status command. "
 
373
            "to_file is the output stream for writing.",
 
374
            (2, 3))
 
375
        self.add_hook(
 
376
            'pre_status',
 
377
            "Called with argument StatusHookParams before Bazaar "
 
378
            "displays the status. StatusHookParams has the attributes "
 
379
            "(old_tree, new_tree, to_file, versioned, show_ids, short, "
 
380
            "verbose). The last four arguments correspond to the command "
 
381
            "line options specified by the user for the status command. "
 
382
            "to_file is the output stream for writing.",
 
383
            (2, 3))
382
384
 
383
385
 
384
386
class StatusHookParams(object):
405
407
        :param short: Use short status indicators.
406
408
        :param verbose: Verbose flag.
407
409
        :param specific_files: If set, a list of filenames whose status should be
408
 
            shown.  It is an error to give a filename that is not in the working
409
 
            tree, or in the working inventory or in the basis inventory.
 
410
            shown.  It is an error to give a filename that is not in the
 
411
            working tree, or in the working inventory or in the basis inventory.
410
412
        """
411
413
        self.old_tree = old_tree
412
414
        self.new_tree = new_tree
421
423
        return self.__dict__ == other.__dict__
422
424
 
423
425
    def __repr__(self):
424
 
        return "<%s(%s, %s, %s, %s, %s, %s, %s, %s)>" % (self.__class__.__name__,
425
 
                                                         self.old_tree, self.new_tree, self.to_file, self.versioned,
426
 
                                                         self.show_ids, self.short, self.verbose, self.specific_files)
 
426
        return "<%s(%s, %s, %s, %s, %s, %s, %s, %s)>" % (
 
427
            self.__class__.__name__, self.old_tree, self.new_tree,
 
428
            self.to_file, self.versioned, self.show_ids, self.short,
 
429
            self.verbose, self.specific_files)
427
430
 
428
431
 
429
432
def _show_shelve_summary(params):