Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webutil.py @ 41676:0531dff73d0b
match: delete unused root and cwd arguments from {always,never,exact}() (API)
Differential Revision: https://phab.mercurial-scm.org/D5930
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 09 Feb 2019 22:50:53 -0800 |
parents | e834f6f6f221 |
children | 832c59d1196e |
comparison
equal
deleted
inserted
replaced
41675:ddbebce94665 | 41676:0531dff73d0b |
---|---|
563 }) | 563 }) |
564 | 564 |
565 def _diffsgen(context, repo, ctx, basectx, files, style, stripecount, | 565 def _diffsgen(context, repo, ctx, basectx, files, style, stripecount, |
566 linerange, lineidprefix): | 566 linerange, lineidprefix): |
567 if files: | 567 if files: |
568 m = match.exact(repo.root, repo.getcwd(), files) | 568 m = match.exact(files) |
569 else: | 569 else: |
570 m = match.always(repo.root, repo.getcwd()) | 570 m = match.always() |
571 | 571 |
572 diffopts = patch.diffopts(repo.ui, untrusted=True) | 572 diffopts = patch.diffopts(repo.ui, untrusted=True) |
573 parity = paritygen(stripecount) | 573 parity = paritygen(stripecount) |
574 | 574 |
575 diffhunks = patch.diffhunks(repo, basectx, ctx, m, opts=diffopts) | 575 diffhunks = patch.diffhunks(repo, basectx, ctx, m, opts=diffopts) |