Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 10394:4612cded5176
fix coding style (reported by pylint)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 08 Feb 2010 15:36:34 +0100 |
parents | f163775e36e0 |
children | 2d30d66a89ad |
comparison
equal
deleted
inserted
replaced
10393:217703f760d1 | 10394:4612cded5176 |
---|---|
101 if (not opts.get('user') and not opts.get('changeset') | 101 if (not opts.get('user') and not opts.get('changeset') |
102 and not opts.get('date') and not opts.get('file')): | 102 and not opts.get('date') and not opts.get('file')): |
103 opts['number'] = 1 | 103 opts['number'] = 1 |
104 | 104 |
105 linenumber = opts.get('line_number') is not None | 105 linenumber = opts.get('line_number') is not None |
106 if (linenumber and (not opts.get('changeset')) and (not opts.get('number'))): | 106 if linenumber and (not opts.get('changeset')) and (not opts.get('number')): |
107 raise util.Abort(_('at least one of -n/-c is required for -l')) | 107 raise util.Abort(_('at least one of -n/-c is required for -l')) |
108 | 108 |
109 funcmap = [func for op, func in opmap if opts.get(op)] | 109 funcmap = [func for op, func in opmap if opts.get(op)] |
110 if linenumber: | 110 if linenumber: |
111 lastfunc = funcmap[-1] | 111 lastfunc = funcmap[-1] |