MCPcopy
hub / github.com/gitless-vcs/gitless / valid_input

Function valid_input

gitless/cli/gl_fuse.py:70–81  ·  view source on GitHub ↗
(inp)

Source from the content-addressed store, hash-verified

68 insertion_point = repo.revparse_single(args.insertion_point).id
69
70 def valid_input(inp):
71 walker = src_branch.history()
72 walker.hide(insertion_point)
73 divergent_ids = frozenset(ci.id for ci in walker)
74
75 errors_found = False
76 for ci in inp - divergent_ids:
77 pprint.err(
78 'Commit with id {0} is not among the divergent commits of branch '
79 '{1}'.format(ci, src_branch))
80 errors_found = True
81 return not errors_found
82
83 only = None
84 exclude = None

Callers 1

mainFunction · 0.85

Calls 1

historyMethod · 0.45

Tested by

no test coverage detected