Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

new: Rewrite#783

Draft
bpoldrack wants to merge 1 commit intopsyinfra:mainfrom
bpoldrack:new3
Draft

new: Rewrite#783
bpoldrack wants to merge 1 commit intopsyinfra:mainfrom
bpoldrack:new3

Conversation

@bpoldrack
Copy link
Copy Markdown
Collaborator

@bpoldrack bpoldrack commented Mar 19, 2025

This can't possibly pass any tests yet. Just drafting the thing for now.
Sits on top of #780.

Comment thread onyo/lib/commands.py Outdated
if template and clone:
raise ValueError("'template' and 'clone' options are mutually exclusive.")

auto_message = auto_message or inventory.repo.auto_message
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. This is new to me.

Just to confirm, this is a shorthand for:

auto_message = inventory.repo.auto_message if auto_message is None else auto_message

(or more literally)

auto_message = auto_message if auto_message is not None else iventory.repo.auto_message

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly.

It's short for auto_message if not auto_message else inventory.repo.auto_message. Which isn't actually what we want, so this was wrong ;-)

Comment thread onyo/lib/commands.py Outdated
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants