perforce.api¶
This module implements the Perforce API
copyright: |
|
---|---|
license: | MIT, see LICENSE for more details |
-
perforce.api.
changelist
(description=None, connection=None)[source]¶ Gets or creates a
Changelist
object with a descriptionParameters: - description (str) – Description of changelist to find or create
- connection (
Connection
) – Connection object to use
Returns:
-
perforce.api.
connect
(*args, **kwargs)[source]¶ Creates or returns a singleton
Connection
object
-
perforce.api.
edit
(filename, connection=None)[source]¶ Checks out a file into the default changelist
Parameters: - filename (str) – File to check out
- connection (
Connection
) – Connection object to use
-
perforce.api.
info
(connection=None)[source]¶ Returns information about the current
Connection
Parameters: connection ( Connection
) – Connection object to useReturns: dict