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