Lines Matching defs:os
72 import atexit, os, re, sys, stat, termios
86 sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "..", "..",
94 sys.path.insert(2, os.path.join(os.path.dirname(__file__), "..", ".."))
169 if os.path.exists(f):
632 mode = stat.S_IMODE(os.stat(f)[stat.ST_MODE])
935 if not os.getcwd().startswith(repo.root):
980 os.path.exists(repo.wjoin(f.parentname))]
1033 os.chdir(root)
1036 dirn, base = os.path.split(path)
1039 os.chdir(os.path.join(root, dirn))
1041 os.putenv('workspace', root)
1042 os.putenv('filepath', path)
1043 os.putenv('dir', dirn)
1044 os.putenv('file', base)
1045 os.system(cmd)
1155 if not os.path.exists(repo.join('hgrc')):
1184 fullpath = fullpath.rstrip(os.path.sep).split(os.path.sep)
1196 elt = elt.split(os.path.sep)
1264 if not os.getcwd().startswith(repo.root):
1274 if os.path.exists(backup):
1275 backup = os.path.abspath(backup)
1303 retval = os.system('webrev ' + webrev_args)