Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: tools/refactoring/p4commands.py

Issue 1581573003: Remove tools/refactoring. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/refactoring/integratefiles.py ('k') | tools/refactoring/removetrace.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import os
2 import filemanagement
3
4 # checks out entire p4 repository
5 def checkoutallfiles():
6 os.system('p4 edit //depotGoogle/...')
7 return
8
9 # reverts all unchanged files, this is completely innoculus
10 def revertunchangedfiles():
11 os.system('p4 revert -a //depotGoogle/...')
12 return
13
14 def integratefile( old_name, new_name):
15 if(old_name == new_name):
16 return
17 if(not filemanagement.fileexist(old_name)):
18 return
19 integrate_command = 'p4 integrate -o -f ' +\
20 old_name +\
21 ' ' +\
22 new_name +\
23 ' > p4summary.txt 2> error.txt'
24 os.system(integrate_command)
25 #print integrate_command
26 delete_command = 'p4 delete -c default ' +\
27 old_name +\
28 ' > p4summary.txt 2> error.txt'
29 os.system(delete_command)
30 #print delete_command
31 return
OLDNEW
« no previous file with comments | « tools/refactoring/integratefiles.py ('k') | tools/refactoring/removetrace.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698