Mercurial > treepkg
diff bin/runtreepkg.py @ 190:e83db4482aab
Add runtreepkg.py command line option --no-svn-update to inhibit updates
of the working copies. This can be useful if e.g. the svn server is
down. Adapt the test cases.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 30 Jul 2008 19:00:31 +0000 |
parents | 2630a1c18816 |
children | 94fb3f3ab58b |
line wrap: on
line diff
--- a/bin/runtreepkg.py Tue Jul 08 15:39:34 2008 +0000 +++ b/bin/runtreepkg.py Wed Jul 30 19:00:31 2008 +0000 @@ -1,5 +1,5 @@ #! /usr/bin/python2.4 -# Copyright (C) 2007 by Intevation GmbH +# Copyright (C) 2007, 2008 by Intevation GmbH # Authors: # Bernhard Herzog <bh@intevation.de> # @@ -36,6 +36,9 @@ parser.add_option("--revision", help=("SVN revision to update to before attempting" " to package.")) + parser.add_option("--no-svn-update", action="store_true", + help=("Do not update the SVN workingcopy before" + " attempting to package.")) return parser.parse_args() def main(): @@ -59,6 +62,7 @@ group = PackagerGroup([create_package_track(**opts) for opts in packager_opts], revision=options.revision, + do_svn_update=not options.no_svn_update, **treepkg_opts) if options.once: group.check_package_tracks()