Show More
@@ -3431,7 +3431,7 b' def log(ui, repo, *pats, **opts):' | |||
|
3431 | 3431 | revs, lrfilematcher, hunksfilter = logcmdutil.getlinerangerevs( |
|
3432 | 3432 | repo, revs, opts) |
|
3433 | 3433 | |
|
3434 |
if filematcher is not None |
|
|
3434 | if filematcher is not None: | |
|
3435 | 3435 | basefilematcher = filematcher |
|
3436 | 3436 | |
|
3437 | 3437 | def filematcher(rev): |
@@ -792,11 +792,9 b' def getlinerangerevs(repo, userrevs, opt' | |||
|
792 | 792 | |
|
793 | 793 | "filematcher(ctx) -> match" is a factory function returning a match object |
|
794 | 794 | for a given revision for file patterns specified in --line-range option. |
|
795 | If neither --stat nor --patch options are passed, "filematcher" is None. | |
|
796 | 795 | |
|
797 | 796 | "hunksfilter(ctx) -> filterfn(fctx, hunks)" is a factory function |
|
798 | 797 | returning a hunks filtering function. |
|
799 | If neither --stat nor --patch options are passed, "filterhunks" is None. | |
|
800 | 798 | """ |
|
801 | 799 | wctx = repo[None] |
|
802 | 800 | |
@@ -815,10 +813,6 b' def getlinerangerevs(repo, userrevs, opt' | |||
|
815 | 813 | rev, {}).setdefault( |
|
816 | 814 | fctx.path(), []).append(linerange) |
|
817 | 815 | |
|
818 | filematcher = None | |
|
819 | hunksfilter = None | |
|
820 | if opts.get('patch') or opts.get('stat'): | |
|
821 | ||
|
822 | 816 |
|
|
823 | 817 |
|
|
824 | 818 |
General Comments 0
You need to be logged in to leave comments.
Login now