Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PETRA III Debian Packages
python-gitlabgroups
Commits
263cfcd7
Commit
263cfcd7
authored
May 15, 2020
by
Jan Kotanski
Browse files
New upstream version 0.2.1
parent
95414730
Changes
4
Hide whitespace changes
Inline
Side-by-side
PKG-INFO
View file @
263cfcd7
Metadata-Version: 1.1
Name: gitlabgroups
Version: 0.2.
0
Version: 0.2.
1
Summary: Nexus Data writer implemented as a Tango Server
Home-page: https://github.com/nexdatas/writer
Author: Jan Kotanski
...
...
gitlabgroups.egg-info/PKG-INFO
View file @
263cfcd7
Metadata-Version: 1.1
Name: gitlabgroups
Version: 0.2.
0
Version: 0.2.
1
Summary: Nexus Data writer implemented as a Tango Server
Home-page: https://github.com/nexdatas/writer
Author: Jan Kotanski
...
...
gitlabgroups/__init__.py
View file @
263cfcd7
...
...
@@ -19,4 +19,4 @@
""" Gitlab group tools """
__version__
=
"0.2.
0
"
__version__
=
"0.2.
1
"
gitlabgroups/glfromsvn.py
View file @
263cfcd7
...
...
@@ -21,6 +21,7 @@
import
subprocess
import
sys
import
os
import
argparse
...
...
@@ -44,6 +45,9 @@ class GLFromSVN(object):
if
self
.
__svndir
else
options
.
url
self
.
__localdir
=
options
.
localdir
or
self
.
__url
.
split
(
"/"
)[
-
1
]
self
.
__authors
=
options
.
authors
or
"./authors.txt"
if
not
os
.
path
.
exists
(
self
.
__authors
):
print
(
"Warning: %s does not exists"
%
self
.
__authors
)
self
.
__authors
=
""
self
.
__tagmessage
=
options
.
tagmessage
or
"migrate svn to git"
def
run
(
self
):
...
...
@@ -51,9 +55,10 @@ class GLFromSVN(object):
"""
# fetch all subgroups
clonecmd
=
'git svn clone %s %s -T %s -b %s -t %s '
\
'--authors-file=%s'
%
(
self
.
__url
,
self
.
__localdir
,
self
.
__trunk
,
self
.
__branches
,
self
.
__tags
,
self
.
__authors
)
%
(
self
.
__url
,
self
.
__localdir
,
self
.
__trunk
,
self
.
__branches
,
self
.
__tags
)
if
self
.
__authors
:
clonecmd
+=
'--authors-file=%s'
%
self
.
__authors
tagcmd
=
'cd %s;'
\
' \git for-each-ref refs/remotes/origin/tags |'
\
' cut -d / -f 5-|'
\
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment