MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / CommitIdProcessor

Class CommitIdProcessor

gitless/cli/helpers.py:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142class CommitIdProcessor(argparse.Action):
143
144 def __init__(self, option_strings, dest, repo=None, **kwargs):
145 self.repo = repo
146 super(CommitIdProcessor, self).__init__(option_strings, dest, **kwargs)
147
148 def __call__(self, parser, namespace, revs, option_string=None):
149 cids = (self.repo.revparse_single(rev).id for rev in revs)
150 setattr(namespace, self.dest, cids)
151
152
153def oei_flags(subparsers, repo):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected