git-svn-id: http://webrtc.googlecode.com/svn/trunk@8 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
31
tools/refactoring/p4commands.py
Normal file
31
tools/refactoring/p4commands.py
Normal file
@ -0,0 +1,31 @@
|
||||
import os
|
||||
import filemanagement
|
||||
|
||||
# checks out entire p4 repository
|
||||
def checkoutallfiles():
|
||||
os.system('p4 edit //depotGoogle/...')
|
||||
return
|
||||
|
||||
# reverts all unchanged files, this is completely innoculus
|
||||
def revertunchangedfiles():
|
||||
os.system('p4 revert -a //depotGoogle/...')
|
||||
return
|
||||
|
||||
def integratefile( old_name, new_name):
|
||||
if(old_name == new_name):
|
||||
return
|
||||
if(not filemanagement.fileexist(old_name)):
|
||||
return
|
||||
integrate_command = 'p4 integrate -o -f ' +\
|
||||
old_name +\
|
||||
' ' +\
|
||||
new_name +\
|
||||
' > p4summary.txt 2> error.txt'
|
||||
os.system(integrate_command)
|
||||
#print integrate_command
|
||||
delete_command = 'p4 delete -c default ' +\
|
||||
old_name +\
|
||||
' > p4summary.txt 2> error.txt'
|
||||
os.system(delete_command)
|
||||
#print delete_command
|
||||
return
|
Reference in New Issue
Block a user