Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkout: allow to checkout obs imported sources of scmsync sources #1624

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

adrianschroeter
Copy link
Member

This allows to skip the check of obs-scm-bridge and checks out what is stored in OBS src server.

Note: This is not necessarly the same representation as in git
(.obscpio instead of directories or sub modules).
Also no modification can be committed.
So this is only intended for people who understand the current
internal implementation of the source storage. There is no
guarantee that this won't change.

Checkout of entire project git is not working with this switch, as the packagelist of osc is empty. It may also make no sense to do this as it will not perform for large projects.

This allows to skip the check of obs-scm-bridge and checks out what
is stored in OBS src server.

Note: This is not necessarly the same representation as in git
      (.obscpio instead of directories or sub modules).
      Also no modification can be committed.
      So this is only intended for people who understand the current
      internal implementation of the source storage. There is no
      guarantee that this won't change.

Checkout of entire project git is not working with this switch, as
the packagelist of osc is empty. It may also make no sense to do
this as it will not perform for large projects.
@pep8speaks
Copy link

pep8speaks commented Sep 11, 2024

Hello @adrianschroeter! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 5254:25: E127 continuation line over-indented for visual indent
Line 5254:121: E501 line too long (138 > 120 characters)

Comment last updated at 2024-09-11 10:49:42 UTC

@adrianschroeter
Copy link
Member Author

should I do this large re-formating of existing code where the linter complains about?
(I suppose we should do it also for all other commands, not only for checkout then)

@@ -5250,6 +5250,8 @@ def do_browse(self, subcmd, opts, *args):
help='Use server side generated sources instead of local generation.')
@cmdln.option('-l', '--limit-size', metavar='limit_size',
help='Skip all files with a given size')
@cmdln.option('--native-obs-package', action='store_true',
help='Do not clone native scm repositories: Different representation and you will not be able to submit changes!')
Copy link
Member

@dirkmueller dirkmueller Sep 11, 2024

Choose a reason for hiding this comment

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

overindented (should be one space beyond the opening parentheses) and wrapping missing

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, but I don't want to become inconsistent with all other options ... let's either change all or none (but I would do it in another commit)

osc/commandline.py Outdated Show resolved Hide resolved
osc/core.py Outdated Show resolved Hide resolved
adrianschroeter and others added 2 commits September 11, 2024 12:49
Co-authored-by: Dirk Mueller <[email protected]>
Co-authored-by: Dirk Mueller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants