comparison mercurial/cmdutil.py @ 3838:dec4eba7ccad

Use util.always instead of creating a new lambda function in show_changeset and simplify the expression.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 09 Dec 2006 09:30:29 +0100
parents 7df171ea50cd
children 1e0b94cfba0e e37786b29bed
comparison
equal deleted inserted replaced
3837:7df171ea50cd 3838:dec4eba7ccad
522 regular display via changeset_printer() is done. 522 regular display via changeset_printer() is done.
523 """ 523 """
524 # options 524 # options
525 patch = False 525 patch = False
526 if opts.get('patch'): 526 if opts.get('patch'):
527 patch = lambda x: True 527 patch = matchfn or util.always
528 if matchfn:
529 patch = matchfn
530 528
531 br = None 529 br = None
532 if opts.get('branches'): 530 if opts.get('branches'):
533 ui.warn(_("the --branches option is deprecated, " 531 ui.warn(_("the --branches option is deprecated, "
534 "please use 'hg branches' instead\n")) 532 "please use 'hg branches' instead\n"))