1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-06 22:23:17 +01:00
Commit Graph

1727 Commits

Author SHA1 Message Date
2ab01d8e9a chore: run no_implicit_optional on the code base to make it PEP 484 compliant.
References: https://github.com/hauntsaninja/no_implicit_optional
2025-05-06 23:12:37 +02:00
743169e49c fix(sr): don't limit SRs to be superseded by other characters
I understand that the current output is better from the point of
view of typography, but it is inconvenient when I need to use the
number of the SR to-be-superseded for clipboard.
2025-04-29 07:50:24 +02:00
Dominik Heidler
bc34e8446f Don't flag empty diff lines 2025-03-20 12:02:23 +01:00
9fe5e09427 Fix MultibuildFlavorResolver to consider an empty flavor during glob match 2025-03-17 20:47:52 +01:00
b1c481a691 Fix MultibuildFlavorResolver to work with <package> _multibuild elements 2025-03-17 20:47:05 +01:00
Dominik Heidler
85d6d9dc0b Don't highlight trailing whitespaces as error in otherwise empty lines
In obs we are often managing diffs of patches.
In patches trailing whitespaces are normal.
So ignore any `[+-]+\s` line.
2025-03-17 13:55:36 +01:00
8099e18b7c Merge pull request #1729 from adrianschroeter/scmsync_template
Add scmsync element to meta template
2025-03-17 08:44:26 +01:00
Dominik Heidler
a83f27e17f Don't highlight empty lines as trailing whitespace lines
Fixes 897e2224
2025-03-14 11:43:12 +01:00
5e6e79731a Add scmsync element to meta template 2025-03-10 13:38:11 +01:00
7a31684672 Change show_project_sourceinfo() to split a huge request into many and join the results to workaround GET limitations 2025-03-03 08:47:40 +01:00
7cc01d1e28 Merge pull request #1712 from dmach/git-obs-pr-review
Implement 'git-obs pr review' command
2025-03-03 08:29:39 +01:00
dcdf4cb3d9 Fix or silence remaining pylint errors
Fix these by adding a default empty assignment:

osc/commandline.py:3382:62: E0606: Possibly using variable 'filter_pattern' before assignment (possibly-used-before-assignment)
osc/commandline.py:6692:18: E0606: Possibly using variable 'msg' before assignment (possibly-used-before-assignment)
osc/core.py:2051:23: E0606: Possibly using variable 'file_changed' before assignment (possibly-used-before-assignment)

These could probably be fixed by making the code easier to follow. By
silencing them for now and making the CI pass, it is easier to not
regress.

osc/commandline.py:3269:55: E0601: Using variable 'incident' before assignment (used-before-assignment)
osc/commandline.py:3276:55: E0601: Using variable 'priority' before assignment (used-before-assignment)

This is pylint not understanding that the try is for catching this case
and only importing when available:

osc/conf.py:77:4: E0401: Unable to import 'keyring' (import-error)
2025-02-27 14:32:09 +01:00
10fcb102b6 Merge pull request #1715 from dmach/fix-scm_url-scmsync_obsinfo-subdir
Fix getting scm_url from scmsync_obsinfo that has subdir set
2025-02-24 14:29:27 +01:00
be5101b21a Fix getting scm_url from scmsync_obsinfo that has subdir set 2025-02-24 09:12:22 +01:00
897e2224e0 Highlight trailing whitespaces in diffs 2025-02-21 14:13:45 +01:00
5f4a4704da Fix 'osc checkout' command to support deleted packages incl. revisions 2025-02-21 13:29:22 +01:00
0f5a26f73c Merge pull request #1702 from dmach/fix-scmsync_obsinfo.revision-None
Fix assembling scm_url when scmsync_obsinfo.revision is None
2025-02-13 14:49:01 +01:00
8287354d48 Improve core.binary() by always considering data that contains \0 binary 2025-02-12 13:45:55 +01:00
b78432ffd3 Fix assembling scm_url when scmsync_obsinfo.revision is None 2025-02-10 14:15:57 +01:00
3c62dc0651 Fix typo in core.binary() that caused text files being detected as binary 2025-02-10 14:13:06 +01:00
b9b3701be1 Merge pull request #1699 from dmach/rq-list-i-forward-prompt
Fix 'request list --interactive' command that wasn't showing request forward prompt when message was part of the state change
2025-02-03 16:35:24 +01:00
56ac6198a6 Merge pull request #1698 from dmach/noobsinfo
Avoid fetching _scmsync.obsinfo when scmsync url contains 'noobsinfo' query parameter
2025-02-03 16:35:01 +01:00
3166faf8f5 Fix 'request list --interactive' command that wasn't showing request forward prompt when message was part of the state change 2025-02-03 16:15:24 +01:00
7abc7bf699 Avoid fetching _scmsync.obsinfo when scmsync url contains 'noobsinfo' query parameter 2025-02-03 14:34:19 +01:00
a8106f3f66 Fix detecting binary files 2025-02-03 09:12:19 +01:00
31c3ed2d9e Fix diff highligting 2025-01-16 12:53:22 +01:00
bb51a825f8 Fix 'linkpac' command for projects with a project link 2025-01-10 12:58:01 +01:00
c5b4835c92 Fix 'linkpac' command by always removing <scmsync> element from target meta 2025-01-10 12:57:46 +01:00
93a851b41c Merge pull request #1682 from dmach/xml-etree-extend-ParseError
Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML
2025-01-07 13:08:02 +01:00
6fc5654aca Extend xml.etree.ElementTree.ParseError output with a snippet of broken XML 2025-01-02 14:25:23 +01:00
52431dda78 Add hint how to deal with scmsync-nobranch scenarios 2024-12-15 12:52:26 +01:00
0ce3c4afe7 Merge pull request #1664 from dmach/fix-log-p-M
Fix 'log' command to work correctly with --meta --patch options
2024-11-29 16:46:44 +01:00
6d91083413 Move running obs_scm_bridge into run_obs_scm_bridge() function 2024-11-29 16:36:48 +01:00
aa9353f6b5 Mute pylint errors in show_package_disabled_repos() that are false-positives 2024-11-29 16:24:33 +01:00
6989fb8b6f Fix another bytes/unicode issues in core.link_pac() by replacing ElementTree code with XML models 2024-11-29 15:49:20 +01:00
5c483fadab Fix traceback in 'linkpac --disable-build' 2024-11-25 08:52:58 +01:00
d8d181ca25 Fix 'log' command to work correctly with --meta --patch options 2024-11-14 13:38:31 +01:00
183a23ccc9 Merge pull request #1660 from dmach/add-request-action-source-repository
Extend RequestActionSource with 'repository' attribute
2024-11-12 09:21:27 +01:00
0638bd08cf Avoid printing urlquoted file names in 'getbinaries' command 2024-11-11 16:56:06 +01:00
0b0bff4976 Extend RequestActionSource with 'repository' attribute
It is a private patch/extension now, to be upstreamed soon.
2024-11-11 13:40:39 +01:00
f4298b8ed7 Update osc/core.py
Co-authored-by: Dirk Mueller <dmueller@suse.com>
2024-11-08 08:30:21 +01:00
8dff7f58d7 checkout: allow to checkout obs imported sources of scmsync sources
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.
2024-11-08 08:30:21 +01:00
79bba89bdc get_prj_results: skip non-status elements in prj results 2024-10-14 13:24:00 +02:00
5172002728 Refactor code handling _scmsync.obsinfo to obs_api.scmsync_obsinfo.ScmsyncObsinfo class 2024-10-08 09:42:02 +02:00
56b8aa6b92 Fix revision'd checkout of scmsync package
When specifing a revision to a checkout we need to transfer the
information to the bridge to do the right checkout. We also need
to take the former git url in case it has changed meanwhile.
2024-10-04 14:38:42 +02:00
1fc581325f Merge pull request #1625 from adrianschroeter/copypac_scmsync
Support copy of scmsync packages
2024-10-02 14:28:32 +02:00
f0292dd2be Support copy of scmsync packages
There are two ways, either copy the scmsync definition or drop it
when creating a new package meta.

If we keep it, we must not ask OBS to copy sources, it is syncing it
anyway.

We could add another option to skip the scmsync tag copy, but we keep
it as default, because we don't want to give a different view of the
the sources to the user.  The client side copy is doing this.
2024-10-02 13:39:11 +02:00
625c4a70d4 Use findtext() instead of find().text 2024-09-11 13:31:41 +02:00
e958ce4328 Merge pull request #1608 from dmach/fix-arch_list-in-get_repos_of_project
Fix iterating through arch_list in core.get_repos_of_project()
2024-08-20 10:44:28 +02:00
70839d1d40 Fix iterating through arch_list in core.get_repos_of_project() 2024-08-15 08:38:49 +02:00