Read the version string, showing just the last line, which hopefully is the interesting version bit. $ p4 -V Perforce - The Fast Software Configuration Management System. Copyright 1995-2011 Perforce Software. All rights reserved. Rev. P4/NTX86/2011.1/393975 (201
()
| 519 | |
| 520 | |
| 521 | def p4_version_string(): |
| 522 | """Read the version string, showing just the last line, which hopefully is |
| 523 | the interesting version bit. |
| 524 | |
| 525 | $ p4 -V |
| 526 | Perforce - The Fast Software Configuration Management System. |
| 527 | Copyright 1995-2011 Perforce Software. All rights reserved. |
| 528 | Rev. P4/NTX86/2011.1/393975 (2011/12/16). |
| 529 | """ |
| 530 | global _p4_version_string |
| 531 | if not _p4_version_string: |
| 532 | a = p4_read_pipe_lines(["-V"]) |
| 533 | _p4_version_string = a[-1].rstrip() |
| 534 | return _p4_version_string |
| 535 | |
| 536 | |
| 537 | def p4_integrate(src, dest): |
no test coverage detected