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.",
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.",
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.",
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.",
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.
411
413
self.old_tree = old_tree
412
414
self.new_tree = new_tree
421
423
return self.__dict__ == other.__dict__
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)
429
432
def _show_shelve_summary(params):