Lines Matching full:rev

207         lastrev = runcmd('git rev-parse origin/%s' % branch, ldir).strip()
226 startrev = runcmd('git rev-parse master').strip()
245 rev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
246 if rev != initialrev:
255 … logger.warning("%s: initial revision '%s' not unique, picking result of rev-parse = %s" %
257 initialrev = rev
261 initialrev = rev
333 for rev in since_rev.split():
335rev = 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)
399 repo['rewritten_revision'] = runcmd('git rev-parse HEAD').strip()
419 repo['stripped_revision'] = runcmd('git rev-parse HEAD').strip()
422 lastrev = runcmd('git rev-parse %s' % initialrev, ldir).strip()
461 rev = runcmd('git rev-parse %s' % name).strip()
462 head.write('%s\n' % rev)
546 def check_rev_branch(component, repodir, rev, branch): argument
548 actualbranch = runcmd("git branch --contains %s" % rev, repodir, printerr=False)
556 logger.error("%s: specified revision %s is invalid!" % (component, rev))
565 …logger.error("%s: specified revision %s is not on specified branch %s!" % (component, rev, branch))
719 rev_cmd = "git rev-list --no-merges %s -- %s" % (rev_cmd_range, file_filter)
807 branchrev = runcmd("git rev-parse %s" % branch, ldir).strip()
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()
1064 def import_rev(rev): argument
1073 # enable the "From ... rev:" commit header modifications.
1074 if rev not in ancestor_revs and rev not in old2new_revs and not scanned_revs:
1075 logger.debug("Revision %s triggers log analysis." % rev)
1078 new_rev = old2new_revs.get(rev, None)
1098 logger.debug("Must import %s because %s is not imported." % (rev, p))
1104 logger.debug("Must import %s because %s is not imported." % (rev, prev))
1106 if rev not in revs and is_imported(rev):
1107 old2new_revs[rev] = head
1110 # Need to import rev. Collect some information about it.
1111 logger.debug("Importing %s" % rev)
1113 …runcmd("git show --no-patch --pretty=format:%P%x00%an%x00%ae%x00%at%x00%B " + rev, **largs).split(…
1127 # track of the rev that corresponds to the index and use apply_commit().
1137 apply_commit(parent, rev, largs, wargs, dest_dir, file_filter=file_filter)
1153 runcmd([hook, patch.name, rev, name])
1172 old2new_revs[rev] = new_rev
1177 for rev in revs:
1178 import_rev(rev)
1190 for rev, base in additional_heads.items():
1191 apply_commit(base, rev, wargs, wargs, None)
1208 rev = repo['last_revision']
1209 conf.update(name, "last_revision", rev)
1219 "From ... rev: ..." convention.'''
1222 …log = runcmd("git log --grep='From .* rev: [a-fA-F0-9][a-fA-F0-9]*' --pretty=format:%H%x00%B%x00 "…
1223 regex = re.compile(r'From .* rev: ([a-fA-F0-9]+)')
1226 rev = regex.findall(body)[-1]
1227 if rev not in old2new:
1228 old2new[rev] = new_rev.strip()
1232 def apply_commit(parent, rev, largs, wargs, dest_dir, file_filter=None): argument
1244 logger.debug("Applying changes between %s and %s in %s" % (parent, rev, largs["destdir"]))
1249 …ee --no-commit-id --no-renames --name-status -r --raw -z %s %s" % (parent, rev), **largs).split(ch…
1256 logger.error("Unknown status %s of file %s in revision %s" % (status, name, rev))
1260 update.extend(runcmd("git ls-tree -r --name-only -z %s" % rev, **largs).split(chr(0)))
1301 … cmd = "git archive %s %s | tar -C %s -xf -" % (rev, ' '.join(quoted_args), quoted_target)