MCPcopy Index your code
hub / github.com/git/git / p4_version_string

Function p4_version_string

git-p4.py:521–534  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

519
520
521def 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
537def p4_integrate(src, dest):

Callers 1

streamOneP4FileMethod · 0.85

Calls 1

p4_read_pipe_linesFunction · 0.85

Tested by

no test coverage detected