Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
ffef0d69
Commit
ffef0d69
authored
Oct 10, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gita: delsub allows list of subtask or packages (mixed)
parent
65f71d85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
gitask
bin/gitask
+22
-1
No files found.
bin/gitask
View file @
ffef0d69
...
...
@@ -28,6 +28,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
" share NNNN [enable] - share task NNNN"
echo
" deps NNNN add XXXX - add deps from XXXX to task NNNN"
echo
" copy NNNN to (p8|p9) [from XX] - copy package from Sisyphus to (p8|p9) [from XX]"
echo
" delsub NNNN (package|subtask) - remove subtask by number or by package name"
echo
" find PACKAGE - do find-package of PACKAGE"
echo
" log NNNN - show build log for task NNNN"
echo
" show NNNN - show subtask list for task NNNN"
...
...
@@ -52,7 +53,7 @@ get_test_status()
# get subtask number from TASKNUMBER for PROJECTNAME
get_subtask
()
{
ssh
$GEARHOST
task show
$1
|
grep
"/
$2
.git
"
|
sed
-e
"s|^
\(
[0-9]*
\)
:.*|
\1
|g"
ssh
$GEARHOST
task show
$1
|
egrep
"(/
$2
.git|:package=
$2$)
"
|
sed
-e
"s|^
\(
[0-9]*
\)
:.*|
\1
|g"
}
# TODO: acl
...
...
@@ -144,6 +145,26 @@ if [ "$1" = "quota" ] ; then
exit
fi
if
[
"
$1
"
=
"delsub"
]
;
then
shift
TASK
=
"
$1
"
[
-n
"
$TASK
"
]
||
TASK
=
"
$(
get_last
)
"
||
fatal
shift
while
[
-n
"
$1
"
]
;
do
SUBTASK
=
"
$1
"
shift
if
isnumber
$SUBTASK
;
then
NUMTASK
=
"
$1
"
else
NUMTASK
=
"
$(
get_subtask
$TASK
$SUBTASK
)
"
info
"
$SUBTASK
->
$NUMTASK
"
fi
[
-z
"
$NUMTASK
"
]
&&
warning
"can't find subtask for
$SUBTASK
, skipped"
&&
continue
docmd ssh
$GEARHOST
task delsub
"
$TASK
"
"
$NUMTASK
"
done
exit
fi
if
[
"
$1
"
=
"copy"
]
;
then
shift
PACKAGELIST
=
''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment