| 140 | |
| 141 | |
| 142 | class 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 | |
| 153 | def oei_flags(subparsers, repo): |
nothing calls this directly
no outgoing calls
no test coverage detected