|
16 | 16 | class P4Repo: |
17 | 17 | """A class for manipulating perforce workspaces""" |
18 | 18 | def __init__(self, root=None, view=None, stream=None, |
19 | | - sync=None, client_opts=None, parallel=0): |
| 19 | + sync=None, client_options=None, parallel=0): |
20 | 20 | """ |
21 | 21 | root: Directory in which to create the client workspace |
22 | 22 | view: Client workspace mapping |
23 | 23 | stream: Client workspace stream. Overrides view parameter. |
24 | 24 | sync: List of paths to sync. Defaults to entire view. |
25 | | - client_opts: Additional options to add to client. (e.g. allwrite) |
| 25 | + client_options: Additional options to add to client. (e.g. allwrite) |
26 | 26 | parallel: How many threads to use for parallel sync. |
27 | 27 | """ |
28 | 28 | self.root = os.path.abspath(root or '') |
29 | 29 | self.stream = stream |
30 | 30 | self.view = self._localize_view(view or []) |
31 | 31 | self.sync_paths = sync or ['//...'] |
32 | 32 | assert isinstance(self.sync_paths, list) |
33 | | - self.client_opts = client_opts or '' |
| 33 | + self.client_options = client_options or '' |
34 | 34 | self.parallel = parallel |
35 | 35 |
|
36 | 36 | self.created_client = False |
@@ -93,7 +93,7 @@ def _setup_client(self): |
93 | 93 |
|
94 | 94 | # unless overidden, overwrite writeable-but-unopened files |
95 | 95 | # (e.g. interrupted syncs, artefacts that have been checked-in) |
96 | | - client._options = self.client_opts + ' clobber' |
| 96 | + client._options = self.client_options + ' clobber' |
97 | 97 |
|
98 | 98 | self.perforce.save_client(client) |
99 | 99 |
|
|
0 commit comments