File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2226,7 +2226,7 @@ def applyCommit(self, id):
2226
2226
raw = True ):
2227
2227
if regexp .search (line ):
2228
2228
if verbose :
2229
- print ("got keyword match on %s in %s in %s" % (regex .pattern , line , file ))
2229
+ print ("got keyword match on %s in %s in %s" % (regexp .pattern , line , file ))
2230
2230
kwfiles [file ] = regexp
2231
2231
break
2232
2232
@@ -4369,19 +4369,16 @@ def __init__(self):
4369
4369
def renameBranch (self , branch_name ):
4370
4370
"""Rename the existing branch to branch_name.N ."""
4371
4371
4372
- found = True
4373
4372
for i in range (0 , 1000 ):
4374
4373
backup_branch_name = "{0}.{1}" .format (branch_name , i )
4375
4374
if not gitBranchExists (backup_branch_name ):
4376
4375
# Copy ref to backup
4377
4376
gitUpdateRef (backup_branch_name , branch_name )
4378
4377
gitDeleteRef (branch_name )
4379
- found = True
4380
4378
print ("renamed old unshelve branch to {0}" .format (backup_branch_name ))
4381
4379
break
4382
-
4383
- if not found :
4384
- sys .exit ("gave up trying to rename existing branch {0}" .format (sync .branch ))
4380
+ else :
4381
+ sys .exit ("gave up trying to rename existing branch {0}" .format (branch_name ))
4385
4382
4386
4383
def findLastP4Revision (self , starting_point ):
4387
4384
"""Look back from starting_point for the first commit created by git-p4
You can’t perform that action at this time.
0 commit comments