Show More
@@ -717,16 +717,15 b' def filelog(repo, subset, x):' | |||
|
717 | 717 | |
|
718 | 718 | # i18n: "filelog" is a keyword |
|
719 | 719 | pat = getstring(x, _("filelog requires a pattern")) |
|
720 | m = matchmod.match(repo.root, repo.getcwd(), [pat], default='relpath', | |
|
721 | ctx=repo[None]) | |
|
722 | 720 | s = set() |
|
723 | 721 | |
|
724 | 722 | if not matchmod.patkind(pat): |
|
725 | f = m.files()[0] | |
|
723 | f = pathutil.canonpath(repo.root, repo.getcwd(), pat) | |
|
726 | 724 | fl = repo.file(f) |
|
727 | 725 | for fr in fl: |
|
728 | 726 | s.add(fl.linkrev(fr)) |
|
729 | 727 | else: |
|
728 | m = matchmod.match(repo.root, repo.getcwd(), [pat], ctx=repo[None]) | |
|
730 | 729 | for f in repo[None]: |
|
731 | 730 | if m(f): |
|
732 | 731 | fl = repo.file(f) |
General Comments 0
You need to be logged in to leave comments.
Login now