You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/07/25 13:09:17 UTC

[07/16] git commit: [#7510] add license header and docstring to new script

[#7510] add license header and docstring to new script


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/9828de98
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9828de98
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9828de98

Branch: refs/heads/je/42cc_7524
Commit: 9828de98139affa2ed0f9d5b684744566a7267e0
Parents: 9a1ea57
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Tue Jul 22 17:22:36 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue Jul 22 17:22:36 2014 +0000

----------------------------------------------------------------------
 scripts/prepare-allura-tickets-for-import.py | 24 ++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/9828de98/scripts/prepare-allura-tickets-for-import.py
----------------------------------------------------------------------
diff --git a/scripts/prepare-allura-tickets-for-import.py b/scripts/prepare-allura-tickets-for-import.py
index 16dd662..dc6a695 100644
--- a/scripts/prepare-allura-tickets-for-import.py
+++ b/scripts/prepare-allura-tickets-for-import.py
@@ -1,10 +1,32 @@
 #!/usr/bin/env python
+#       Licensed to the Apache Software Foundation (ASF) under one
+#       or more contributor license agreements.  See the NOTICE file
+#       distributed with this work for additional information
+#       regarding copyright ownership.  The ASF licenses this file
+#       to you under the Apache License, Version 2.0 (the
+#       "License"); you may not use this file except in compliance
+#       with the License.  You may obtain a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#       Unless required by applicable law or agreed to in writing,
+#       software distributed under the License is distributed on an
+#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#       KIND, either express or implied.  See the License for the
+#       specific language governing permissions and limitations
+#       under the License.
+
 from itertools import tee, izip, chain
 import json
 import git
 from collections import Counter
-from random import randint
 
+'''
+This script is for one-time conversion of Allura's own tickets from SourceForge
+host to forge-allura.apache.org hosting
+
+Change path variables here:
+'''
 
 filename = "/var/local/allura/tickets.json"  # Absolute path to exported tickets.json
 output = "/var/local/allura/updated_tickets.json"  # Absolute path to the output