Commit 9e76b35a authored by Jan Kotanski's avatar Jan Kotanski
Browse files

New upstream version 0.2.1

parent d632259c
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
......
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
......
......@@ -19,4 +19,4 @@
""" Gitlab group tools """
__version__ = "0.2.0"
__version__ = "0.2.1"
......@@ -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-|' \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment