Lines Matching refs:runcmd
44 branchname = runcmd("git symbolic-ref HEAD 2>/dev/null", repodir).strip()
170 def runcmd(cmd,destdir=None,printerr=True,out=None,env=None): function
206 runcmd("git fetch", ldir)
207 lastrev = runcmd('git rev-parse origin/%s' % branch, ldir).strip()
222 runcmd("git init")
225 runcmd('git commit -m "initial empty commit" --allow-empty')
226 startrev = runcmd('git rev-parse master').strip()
245 rev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
248 refs = runcmd('git show-ref -s %s' % initialrev, ldir).split('\n')
293 files = runcmd("git archive %s %s | tar -x -v %s -C %s %s" %
316 runcmd("git branch -f %s %s" % (refname, initialrev), ldir)
317 runcmd("git fetch %s %s" % (ldir, refname))
318 runcmd("git branch -D %s" % refname, ldir)
320 runcmd("git checkout -b %s %s" % (name, initialrev))
329 committer = runcmd('git var GIT_AUTHOR_IDENT').strip()
335 … rev = runcmd('git log --oneline --no-abbrev-commit -n1 %s' % rev, ldir).split()[0]
339 tree = runcmd('git show -s --pretty=format:%%T %s' % rev).strip()
359 runcmd('git replace --edit %s' % rev)
397 runcmd(filter_branch)
398 runcmd('git update-ref -d refs/original/refs/heads/%s' % name)
399 repo['rewritten_revision'] = runcmd('git rev-parse HEAD').strip()
404 runcmd('git rm -rf .')
409 runcmd('git add --all --force .')
410 if runcmd('git status --porcelain'):
412 runcmd(['git', 'commit', '-m',
419 repo['stripped_revision'] = runcmd('git rev-parse HEAD').strip()
422 lastrev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
426 runcmd("git add .")
429 runcmd('git checkout master')
437 … for start in runcmd('git log --pretty=format:%%H --max-parents=0 %s --' % name).split('\n'):
438 runcmd('git replace --graft %s %s' % (start, startrev))
440 runcmd(merge)
461 rev = runcmd('git rev-parse %s' % name).strip()
467 runcmd("git rm --cached %s" % conf.localconffile, printerr=False)
472 … runcmd("grep -q %s .gitignore || echo %s >> .gitignore" % (localrelpath, localrelpath))
473 runcmd("git add .gitignore")
485 output=runcmd("git status --porcelain", repodir)
548 actualbranch = runcmd("git branch --contains %s" % rev, repodir, printerr=False)
607 runcmd("git checkout %s" % branch, ldir, printerr=False)
609 output=runcmd("git fetch", ldir)
611 runcmd("git checkout %s" % branch, ldir)
612 runcmd("git pull --ff-only", ldir)
614 output=runcmd("git pull --ff-only", ldir)
617 output=runcmd("git fetch", ldir)
619 runcmd("git checkout %s" % branch, ldir)
620 runcmd("git reset --hard FETCH_HEAD", ldir)
715 output = runcmd(patch_cmd, ldir)
720 revlist = runcmd(rev_cmd, ldir).splitlines()
727 runcmd("%s %s %s %s" % (repo['hook'], patch, revlist[count], name))
750 runcmd("rm -rf %s" % patch_dir)
770 output = runcmd("git status --porcelain %s" % relpath, printerr=False)
779 runcmd('git commit -m'.split() + [msg, relpath])
781 runcmd('git add %s' % relpath)
807 branchrev = runcmd("git rev-parse %s" % branch, ldir).strip()
823 runcmd(cmd)
826 runcmd("git am --abort")
853 len(runcmd("git show --pretty=format:%%P --no-patch %s" % branch, ldir).split()) > 1:
892 runcmd(cmd)
895 if os.path.getsize(patch_filename) == 0 or runcmd("filterdiff %s" % patch_filename) == "":
918 head = runcmd("git rev-parse HEAD").strip()
1048 revs = runcmd("git rev-list %s" % rev_list_args, **largs).split()
1057 … ancestor_revs = runcmd("git rev-list --ancestry-path %s" % rev_list_args, **largs).split()
1094 parents = runcmd("git show --no-patch --pretty=format:%P " + prev, **largs).split()
1113 …runcmd("git show --no-patch --pretty=format:%P%x00%an%x00%ae%x00%at%x00%B " + rev, **largs).split(…
1128 runcmd("git rm -q --ignore-unmatch -rf .", **wargs)
1130 runcmd("git checkout -q -f %s ." % new_parent, **wargs)
1134 runcmd("git rm -q --ignore-unmatch -rf .", **wargs)
1140 new_tree = runcmd("git write-tree", **wargs).strip()
1153 runcmd([hook, patch.name, rev, name])
1162 old_tree = runcmd("git show -s --pretty=format:%T " + parent_rev, **wargs).strip()
1169 … new_rev = runcmd("git commit-tree".split() + add_p([import_rev(p) for p in parents]) +
1189 runcmd("git reset --hard", **wargs)
1196 new_tree = runcmd("git write-tree", **wargs).strip()
1197 new_rev = runcmd("git commit-tree".split() +
1202 runcmd("git reset --hard %s" % new_rev)
1212 runcmd("git commit --amend -C HEAD")
1222 …log = runcmd("git log --grep='From .* rev: [a-fA-F0-9][a-fA-F0-9]*' --pretty=format:%H%x00%B%x00 "…
1249 …changes = runcmd("git diff-tree --no-commit-id --no-renames --name-status -r --raw -z %s %s" % (pa…
1260 update.extend(runcmd("git ls-tree -r --name-only -z %s" % rev, **largs).split(chr(0)))
1303 runcmd(cmd, **largs)
1306 runcmd(cmd, **wargs)
1311 …runcmd("git rm -f --ignore-unmatch".split() + [os.path.join(dest_dir, x) for x in delete], **wargs)