File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ def getP4OpenedType(file):
368
368
# Returns the perforce file type for the given file.
369
369
370
370
result = p4_read_pipe (["opened" , wildcard_encode (file )])
371
- match = re .match (".*\((.+)\)\r ?$" , result )
371
+ match = re .match (".*\((.+)\)( \*exclusive\*)? \r ?$" , result )
372
372
if match :
373
373
return match .group (1 )
374
374
else :
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ test_expect_success 'edit with lock not taken' '
35
35
)
36
36
'
37
37
38
- test_expect_failure ' add with lock not taken' '
38
+ test_expect_success ' add with lock not taken' '
39
39
test_when_finished cleanup_git &&
40
40
git p4 clone --dest="$git" //depot &&
41
41
(
42
42
cd "$git" &&
43
43
echo line1 >>add-lock-not-taken &&
44
- git add file2 &&
44
+ git add add-lock-not-taken &&
45
45
git commit -m "add add-lock-not-taken" &&
46
46
git config git-p4.skipSubmitEdit true &&
47
47
git p4 submit --verbose
@@ -107,7 +107,7 @@ test_expect_failure 'chmod with lock taken' '
107
107
)
108
108
'
109
109
110
- test_expect_failure ' copy with lock taken' '
110
+ test_expect_success ' copy with lock taken' '
111
111
lock_in_another_client &&
112
112
test_when_finished cleanup_git &&
113
113
test_when_finished "cd \"$cli\" && p4 revert file2 && rm -f file2" &&
@@ -130,8 +130,8 @@ test_expect_failure 'move with lock taken' '
130
130
git p4 clone --dest="$git" //depot &&
131
131
(
132
132
cd "$git" &&
133
- git mv file1 file2 &&
134
- git commit -m "mv file1 to file2 " &&
133
+ git mv file1 file3 &&
134
+ git commit -m "mv file1 to file3 " &&
135
135
git config git-p4.skipSubmitEdit true &&
136
136
git config git-p4.detectRenames true &&
137
137
git p4 submit --verbose
You can’t perform that action at this time.
0 commit comments