Searched refs:repo (Results 1 - 4 of 4) sorted by relevance

/gem5/util/
H A Dhgfilesize.py16 def limit_file_size(ui, repo, node=None, **kwargs):
21 existing_tip = context.changectx(repo, node).rev()
22 new_tip = context.changectx(repo, 'tip').rev()
24 ctx = context.changectx(repo, rev)
H A Dstyle.py48 from style import repo
74 repo_classes = repo.detect_repo()
88 "git" : repo.GitRepo,
89 "hg" : repo.MercurialRepo,
112 parser.add_argument("--repo-type", choices=repo_types, default="auto",
126 repo = repo_types[args.repo_type]() variable
132 if not files and repo:
133 added, modified = repo.staged_files()
134 files = [ repo.file_path(f) for f in added + modified ]
137 if args.modifications and repo an
[all...]
H A Dhgstyle.py86 def _modified_regions(repo, patterns, **kwargs):
95 m = scmutil.match(repo[None], patterns, kwargs)
98 m = cmdutil.match(repo, patterns, kwargs)
101 repo.status(match=m, clean=opt_all)
105 wctx = repo.workingctx()
108 wctx = context.workingctx(repo)
120 def do_check_style(hgui, repo, *pats, **opts):
161 verifiers = [v(ui, opts, base=repo.root) for v in all_verifiers]
163 for fname, mod_regions in _modified_regions(repo, pats, **opts):
165 if verifier.apply(joinpath(repo
[all...]
H A Dgit-pre-commit.py45 from style.repo import GitRepo

Completed in 6 milliseconds