p4cmd 2.9.1__tar.gz → 2.9.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {p4cmd-2.9.1 → p4cmd-2.9.2}/PKG-INFO +1 -1
  2. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/__init__.py +1 -1
  3. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/p4cmd.py +2 -0
  4. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd.egg-info/PKG-INFO +1 -1
  5. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/test_p4client.py +4 -0
  6. {p4cmd-2.9.1 → p4cmd-2.9.2}/LICENSE +0 -0
  7. {p4cmd-2.9.1 → p4cmd-2.9.2}/README.md +0 -0
  8. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/p4errors.py +0 -0
  9. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/p4file.py +0 -0
  10. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/__init__.py +0 -0
  11. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_DEPOT_ONLY.png +0 -0
  12. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_MOVED.png +0 -0
  13. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_NEED_SYNC.png +0 -0
  14. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_OPEN_FOR_ADD.png +0 -0
  15. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_OPEN_FOR_DELETE.png +0 -0
  16. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_OPEN_FOR_EDIT.png +0 -0
  17. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_UNKNOWN.png +0 -0
  18. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_UNTRACKED.png +0 -0
  19. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/resources/perforce_UP_TO_DATE.png +0 -0
  20. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd/utils.py +0 -0
  21. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd.egg-info/SOURCES.txt +0 -0
  22. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd.egg-info/dependency_links.txt +0 -0
  23. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd.egg-info/requires.txt +0 -0
  24. {p4cmd-2.9.1 → p4cmd-2.9.2}/p4cmd.egg-info/top_level.txt +0 -0
  25. {p4cmd-2.9.1 → p4cmd-2.9.2}/setup.cfg +0 -0
  26. {p4cmd-2.9.1 → p4cmd-2.9.2}/setup.py +0 -0
  27. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/__init__.py +0 -0
  28. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/conftest.py +0 -0
  29. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/test_integration.py +0 -0
  30. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/test_p4file.py +0 -0
  31. {p4cmd-2.9.1 → p4cmd-2.9.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: p4cmd
3
- Version: 2.9.1
3
+ Version: 2.9.2
4
4
  Summary: Simple P4 python module
5
5
  Home-page: https://github.com/nielsvaes/p4cmd
6
6
  Author: Niels Vaes
@@ -1,4 +1,4 @@
1
- VERSION = "2.9.1"
1
+ VERSION = "2.9.2"
2
2
 
3
3
  from .p4cmd import P4Client
4
4
  from .p4file import P4File
@@ -1231,6 +1231,8 @@ class P4Client(object):
1231
1231
  :param changelist: *string* with cl description or *int* cl number
1232
1232
  :return:
1233
1233
  """
1234
+ if changelist is None:
1235
+ return "default"
1234
1236
  if isinstance(changelist, str):
1235
1237
  try:
1236
1238
  return int(changelist)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: p4cmd
3
- Version: 2.9.1
3
+ Version: 2.9.2
4
4
  Summary: Simple P4 python module
5
5
  Home-page: https://github.com/nielsvaes/p4cmd
6
6
  Author: Niels Vaes
@@ -109,6 +109,10 @@ def test_ensure_changelist_float(p4client):
109
109
  assert p4client._P4Client__ensure_changelist(1.5) == 1
110
110
 
111
111
 
112
+ def test_ensure_changelist_none(p4client):
113
+ assert p4client._P4Client__ensure_changelist(None) == "default"
114
+
115
+
112
116
  def test_ensure_changelist_default_str(p4client):
113
117
  # "default" triggers get_or_make_changelist which returns "default"
114
118
  with patch.object(p4client, "get_or_make_changelist", return_value="default") as mock_gomc:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes