From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 20:46:00 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 547107B9 for ; Wed, 23 Jan 2013 20:46:00 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 061D5E60 for ; Wed, 23 Jan 2013 20:45:59 +0000 (UTC) Received: from 24-181-237-39.dhcp.oxfr.ma.charter.com ([24.181.237.39] helo=Gregory-Larkins-iMac.local) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1Ty7Cl-000E0b-4R; Wed, 23 Jan 2013 15:45:59 -0500 Received: from Gregory-Larkins-iMac.local (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by Gregory-Larkins-iMac.local (Postfix) with ESMTPS id BADED19A2DA1; Wed, 23 Jan 2013 15:45:54 -0500 (EST) Message-ID: <51004C02.9040107@FreeBSD.org> Date: Wed, 23 Jan 2013 15:45:54 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Peter Vereshagin References: <20130123012915.GA16404@external.screwed.box> In-Reply-To: <20130123012915.GA16404@external.screwed.box> X-Enigmail-Version: 1.5 X-SA-Exim-Connect-IP: 24.181.237.39 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Subject: Re: 'svn-export' incrementing? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: xyne@archlinux.ca, questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 20:46:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/22/13 8:29 PM, Peter Vereshagin wrote: > Hello. > > I use the 'svn-export this way and expect it will try to update > the 'work-tree' next time I run it: > > $ python3 svn-export-2013.1/svn-export > http://svn.gna.org/svn/nasmail/trunk nasmail Exporting new > repository. Exported revision 1546 [portato@screwed /tmp]$ ls -a > nasmail . decode plugin_pack tests > utilities .. nasmail plugins > translations [portato@screwed /tmp]$ python3 > svn-export-2013.1/svn-export http://svn.gna.org/svn/nasmail/trunk > nasmail Exporting new repository. svn: E155000: Destination > directory exists; please remove the directory or use --force to > overwrite svn: E155000: 'nasmail' already exists error: Command > '['svn', 'export', '-r', 'HEAD', > 'http://svn.gna.org/svn/nasmail/trunk', 'nasmail']' returned > non-zero exit status 1 > > I believe there is something wrong in the way I use the > 'svn-export'. Otherwise it's a no problem for me to patch for > '--force'. > > How can I update the already created 'work tree' with 'svn update'? > I think the correct answer is a good idea for 'Synopsis' docs > section. > Hi Peter, In order for svn-export to work in incremental mode, you need to use the --revision-file argument like so: python3 svn-export-2013.1/svn-export -r rev.dat http://svn.gna.org/svn/nasmail/trunk nasmail Then at some point in the future, run the same command. svn-export will read rev.dat, compare the version in there with the current HEAD revision. If they are different, the script creates a diff and applies it to the local directory. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlEATAIACgkQ0sRouByUApDBCgCgthHZtPIKq332sNIa7gyxnt/9 BcMAn2aXoD0niPr90A/r+etu0HD7XYxG =tpL9 -----END PGP SIGNATURE-----