Show More
@@ -353,7 +353,9 b' def _makelogrevset(repo, pats, opts, rev' | |||||
353 | fnopats = (('_ancestors', '_fancestors'), |
|
353 | fnopats = (('_ancestors', '_fancestors'), | |
354 | ('_descendants', '_fdescendants')) |
|
354 | ('_descendants', '_fdescendants')) | |
355 | if pats: |
|
355 | if pats: | |
356 | opts[fpats[followfirst]] = list(pats) |
|
356 | # follow() revset inteprets its file argument as a | |
|
357 | # manifest entry, so use match.files(), not pats. | |||
|
358 | opts[fpats[followfirst]] = list(match.files()) | |||
357 | else: |
|
359 | else: | |
358 | opts[fnopats[followdescendants][followfirst]] = str(startrev) |
|
360 | opts[fnopats[followdescendants][followfirst]] = str(startrev) | |
359 | else: |
|
361 | else: |
@@ -2026,6 +2026,20 b' Test subdir' | |||||
2026 | ('string', 'r:') |
|
2026 | ('string', 'r:') | |
2027 | ('string', 'd:relpath')) |
|
2027 | ('string', 'd:relpath')) | |
2028 | ('string', 'p:.')))) |
|
2028 | ('string', 'p:.')))) | |
|
2029 | $ testlog ../b | |||
|
2030 | [] | |||
|
2031 | (group | |||
|
2032 | (group | |||
|
2033 | (func | |||
|
2034 | ('symbol', 'filelog') | |||
|
2035 | ('string', '../b')))) | |||
|
2036 | $ testlog -f ../b | |||
|
2037 | [] | |||
|
2038 | (group | |||
|
2039 | (group | |||
|
2040 | (func | |||
|
2041 | ('symbol', 'follow') | |||
|
2042 | ('string', 'b')))) | |||
2029 | $ cd .. |
|
2043 | $ cd .. | |
2030 |
|
2044 | |||
2031 | Test --hidden |
|
2045 | Test --hidden |
General Comments 0
You need to be logged in to leave comments.
Login now