Commit 32169809 authored by Eric S. Raymond's avatar Eric S. Raymond

Properly guard mailbox_in.

parent b9f68d50
......@@ -8725,6 +8725,9 @@ def help_mailbox_in(self):
""")
def do_mailbox_in(self, line):
"Accept a mailbox file representing object metadata and update from it."
if self.chosen() is None:
complain(b"no repo has been chosen.")
return
with RepoSurgeon.LineParse(line, capabilities=["stdin","stdout"]) as parse:
update_list = []
while True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment