[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] command line options to use external command to compress

From: Senthil Kumaran S <senthil_at_collab.net>
Date: Wed, 21 Oct 2009 14:58:36 +0530

masaru tsuchiyama wrote:
>
> Oops. Fixed the bug.
>
> [[[
> add two command line options, --bzip2-cmd and --gzip-cmd
> to svn-backup-dumps.py
>
> if --bzip2-cmd option is specified, the script uses bzip2 command to
> compress the dump stream instead of python bzip2 module.
>
> if --gzip-cmd option is specified, the script uses gzip command to
> compress the dump stream instead of python gzip module.
>
> * tools/server-side/svn-backup-dumps.py
> (SvnBackupOutputCommand): add new class to launch external command to
> compress.
> (SvnBackup.__init__): add two member variables, __bzip2_path and
> __gzip_path to hold command line parameters
> (SvnBackup.__init__): add mutually exclusive checks for compress options.
> (SvnBackup.create_dump): create instance of SvnBackupOutputCommand
> when __bzip2_path or __gzip_path is valid
> (): fix command option help for "-b" and "-z" to distinguish from
> --bzip2-cmd and --gzip-cmd option.
> (): change parser.add_option parameters for -b and -z to
> do mutually exclusive checks
> ]]]

Committed in r40147, with minor formatting tweaks to wrap lines within 80
columns and modified log message. Thanks for the patch.

-- 
Senthil Kumaran S
http://www.stylesen.org/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2409699
Received on 2009-10-21 11:29:15 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.