Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mrhlpr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
mrhlpr
Commits
5748235d
Verified
Commit
5748235d
authored
2 months ago
by
Newbyte
Browse files
Options
Downloads
Patches
Plain Diff
mrhlpr, mrtest: Reformat with Ruff 0.9
parent
99dfb038
No related branches found
No related tags found
1 merge request
!67
mrhlpr.mr: Also include systemd repo when upgrading
Pipeline
#214778
passed with warnings
2 months ago
Stage: test
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
mrhlpr/frontend.py
+4
-5
4 additions, 5 deletions
mrhlpr/frontend.py
mrhlpr/mr.py
+2
-2
2 additions, 2 deletions
mrhlpr/mr.py
mrhlpr/pipeline.py
+1
-1
1 addition, 1 deletion
mrhlpr/pipeline.py
mrtest/frontend.py
+1
-1
1 addition, 1 deletion
mrtest/frontend.py
with
8 additions
and
9 deletions
mrhlpr/frontend.py
+
4
−
5
View file @
5748235d
...
...
@@ -187,12 +187,11 @@ def print_status(mr_id: int, no_cache: bool = False) -> None:
if
len
(
commits
)
>
1
:
print_error
(
f
"
*
{
len
(
commits
)
}
commits: consider squashing
"
f
"
(
'
git rebase -i origin/
{
target_branch
}
'
)
"
f
"
*
{
len
(
commits
)
}
commits: consider squashing (
'
git rebase -i origin/
{
target_branch
}
'
)
"
)
if
not
is_rebased
:
print_error
(
f
"
* Rebase on
{
target_branch
}
(
'
git
"
f
"
rebase origin/
{
target_branch
}
'
)
"
)
print_error
(
f
"
* Rebase on
{
target_branch
}
(
'
git rebase origin/
{
target_branch
}
'
)
"
)
print_error
(
"
* Check again (
'
mrhlpr status
'
)
"
)
return
...
...
@@ -220,7 +219,7 @@ def get_parser() -> argparse.ArgumentParser:
"
-v
"
,
"
--verbose
"
,
action
=
"
store_true
"
,
help
=
"
display debug log: all git commands and
"
"
locations of http cache files
"
,
help
=
"
display debug log: all git commands and locations of http cache files
"
,
)
parser
.
add_argument
(
"
-V
"
,
"
--version
"
,
action
=
"
version
"
,
version
=
version
.
get_full_version_information
()
...
...
@@ -239,7 +238,7 @@ def get_parser() -> argparse.ArgumentParser:
"
--no-fetch
"
,
action
=
"
store_false
"
,
dest
=
"
fetch
"
,
help
=
"
do not fetch the remote and origin
"
"
repositories
"
,
help
=
"
do not fetch the remote and origin repositories
"
,
)
checkout
.
add_argument
(
"
-o
"
,
...
...
This diff is collapsed.
Click to expand it.
mrhlpr/mr.py
+
2
−
2
View file @
5748235d
...
...
@@ -226,7 +226,7 @@ def checkout(
git
.
run
([
"
remote
"
,
"
set-url
"
,
remote_local
,
url
])
git
.
run
([
"
remote
"
,
"
set-url
"
,
"
--push
"
,
remote_local
,
url_push
])
else
:
print
(
"
ERROR: Remote
'"
+
remote_local
+
"'
already exists and has
"
"
a different URL.
"
)
print
(
"
ERROR: Remote
'"
+
remote_local
+
"'
already exists and has a different URL.
"
)
print
()
print
(
"
existing:
"
+
existing
)
print
(
"
expected:
"
+
url
)
...
...
@@ -275,7 +275,7 @@ def checkout(
# Check existing branch
remote_existing
=
git
.
branch_remote
(
branch_local
)
if
remote_existing
!=
remote_local
:
print
(
"
Branch
'"
+
branch_local
+
"'
exists, but points to a
"
"
different remote.
"
)
print
(
"
Branch
'"
+
branch_local
+
"'
exists, but points to a different remote.
"
)
print
()
print
(
"
existing remote:
"
+
str
(
remote_existing
))
print
(
"
expected remote:
"
+
remote_local
)
...
...
This diff is collapsed.
Click to expand it.
mrhlpr/pipeline.py
+
1
−
1
View file @
5748235d
...
...
@@ -51,7 +51,7 @@ class PipelineMetadata:
job
=
self
.
_get_build_job
(
api_pipeline_jobs
)
if
not
job
:
logging
.
error
(
"
ERROR: could not find build job with device
'
s architecture in the
"
"
pipeline.
"
"
ERROR: could not find build job with device
'
s architecture in the pipeline.
"
)
exit
(
1
)
...
...
This diff is collapsed.
Click to expand it.
mrtest/frontend.py
+
1
−
1
View file @
5748235d
...
...
@@ -56,7 +56,7 @@ def get_parser() -> argparse.ArgumentParser:
"
-v
"
,
"
--verbose
"
,
action
=
"
store_true
"
,
help
=
"
display debug log: all commands and locations of
"
"
http cache files
"
,
help
=
"
display debug log: all commands and locations of http cache files
"
,
)
parser
.
add_argument
(
"
-V
"
,
"
--version
"
,
action
=
"
version
"
,
version
=
mrhlpr
.
version
.
get_full_version_information
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment