| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 return match.group(2) | 266 return match.group(2) |
| 267 | 267 |
| 268 # Extract the svn revision from 'git-svn' metadata | 268 # Extract the svn revision from 'git-svn' metadata |
| 269 value = footer_map.get(GIT_SVN_ID_FOOTER_KEY) | 269 value = footer_map.get(GIT_SVN_ID_FOOTER_KEY) |
| 270 if value: | 270 if value: |
| 271 match = GIT_SVN_ID_RE.match(value) | 271 match = GIT_SVN_ID_RE.match(value) |
| 272 if match: | 272 if match: |
| 273 return match.group(1) | 273 return match.group(1) |
| 274 raise GitFailedException("Couldn't determine commit position for %s" % | 274 raise GitFailedException("Couldn't determine commit position for %s" % |
| 275 git_hash) | 275 git_hash) |
| OLD | NEW |