You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/04 16:24:34 UTC
[2/2] git commit: [#4691] Exclude SVN from refresh-last-commits.py
since TreeDocs, TreesDocs and DiffInfoDocs are not pre-computed for SVN
Updated Branches:
refs/heads/cj/4691 a74ce630a -> dc3150cb3
[#4691] Exclude SVN from refresh-last-commits.py since TreeDocs, TreesDocs and DiffInfoDocs are not pre-computed for SVN
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/dc3150cb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/dc3150cb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/dc3150cb
Branch: refs/heads/cj/4691
Commit: dc3150cb3d61f7e79bc91133ead1d461f546ad3e
Parents: 859d2e6
Author: Cory Johns <jo...@geek.net>
Authored: Mon Feb 4 15:24:09 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Feb 4 15:24:09 2013 +0000
----------------------------------------------------------------------
scripts/refresh-last-commits.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/dc3150cb/scripts/refresh-last-commits.py
----------------------------------------------------------------------
diff --git a/scripts/refresh-last-commits.py b/scripts/refresh-last-commits.py
index 5b6e78a..a23f582 100644
--- a/scripts/refresh-last-commits.py
+++ b/scripts/refresh-last-commits.py
@@ -135,9 +135,9 @@ def repo_type_list(s):
repo_types = []
for repo_type in s.split(','):
repo_type = repo_type.strip()
- if repo_type not in ['svn', 'git', 'hg']:
+ if repo_type not in ['git', 'hg']:
raise argparse.ArgumentTypeError(
- '{} is not a valid repo type.'.format(repo_type))
+ '{0} is not a valid repo type.'.format(repo_type))
repo_types.append(repo_type)
return repo_types
@@ -156,9 +156,9 @@ def parse_options():
help='Restrict update to projects for which the shortname matches '
'the provided regex.')
parser.add_argument('--repo-types', action='store', type=repo_type_list,
- default=['svn', 'git', 'hg'], dest='repo_types',
+ default=['git', 'hg'], dest='repo_types',
help='Only refresh last commits for repos of the given type(s). Defaults to: '
- 'svn,git,hg. Example: --repo-types=git,hg')
+ 'git,hg. Example: --repo-types=git')
parser.add_argument('--mount_point', default='', dest='mount_point',
help='Restrict update to repos at the given tool mount point. ')
parser.add_argument('--clean', action='store_true', dest='clean',