OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """This module contains the SourceControl class and related functions.""" | 5 """This module contains the SourceControl class and related functions.""" |
6 | 6 |
7 import os | 7 import os |
8 | 8 |
9 from . import bisect_utils | 9 from . import bisect_utils |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 Args: | 277 Args: |
278 filename: Name of file. | 278 filename: Name of file. |
279 revision_start: Start of revision range. | 279 revision_start: Start of revision range. |
280 revision_end: End of revision range. | 280 revision_end: End of revision range. |
281 | 281 |
282 Returns: | 282 Returns: |
283 Returns a list of commits that touched this file. | 283 Returns a list of commits that touched this file. |
284 """ | 284 """ |
285 cmd = ['log', '--format=%H', '%s~1..%s' % (revision_start, revision_end), | 285 cmd = ['log', '--format=%H', '%s~1..%s' % (revision_start, revision_end), |
286 filename] | 286 '--', filename] |
287 output = bisect_utils.CheckRunGit(cmd) | 287 output = bisect_utils.CheckRunGit(cmd) |
288 | 288 |
289 return [o for o in output.split('\n') if o] | 289 return [o for o in output.split('\n') if o] |
OLD | NEW |