Lines Matching full:path

40 def CheckRepoIsClean(path, suffix):
41 os.chdir(path) # As a side effect this also checks for existence of the dir.
42 # If path isn't a git repo, this will throw and exception.
46 raise Exception('%s is not a clean git repo (run git status)' % path)
47 if not path.endswith(suffix):
48 raise Exception('%s does not end with /%s' % (path, suffix))
51 def CheckRepoIsNotAtMasterBranch(path):
52 os.chdir(path)
55 raise Exception('%s is at master branch - refusing to copy there.' % path)
58 def CheckRepoIsV8Checkout(path):
59 os.chdir(path)
62 raise Exception('%s is not a proper V8 checkout.' % path)
65 def CheckRepoIsInspectorProtocolCheckout(path):
66 os.chdir(path)
69 raise Exception('%s is not a proper inspector_protocol checkout.' % path)
72 def FindFilesToSyncIn(path):
75 files += glob.glob(os.path.join(path, f))
76 files = [os.path.relpath(f, path) for f in files]
86 def GetHeadRevision(path):
87 os.chdir(path)
107 upstream = os.path.normpath(os.path.expanduser(args.ip_src_upstream))
108 downstream = os.path.normpath(os.path.expanduser(
119 dest_dir = os.path.join(downstream, 'third_party/inspector_protocol')
127 os.path.join(src_dir, f), os.path.join(dest_dir, f)))]
139 contents = open(os.path.join(src_dir, f)).read()
146 open(os.path.join(dest_dir, f), 'w').write(contents)
147 shutil.copymode(os.path.join(src_dir, f), os.path.join(dest_dir, f))
149 os.unlink(os.path.join(dest_dir, f))
151 lines = open(os.path.join(dest_dir, 'README.v8')).readlines()
152 f = open(os.path.join(dest_dir, 'README.v8'), 'w')