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

[PATCH] contrib svn-fast-backup simple fix for command variables

From: Raman Gupta <rocketraman_at_fastmail.fm>
Date: 2006-08-15 00:13:00 CEST

Small fix for contrib tool svn-fast-backup:

[[[
* contrib/server-side/svn-fast-backup: Use the variables svnlook and
rsync defined near the top
    instead of hard-coded Strings.

   Patch by: Raman Gupta
   Reviewed by: ?
]]]

Cheers,
Raman Gupta

--- old/svn-fast-backup 2006-08-14 18:06:27.370460000 -0400
+++ new/svn-fast-backup 2006-08-14 18:06:34.750504000 -0400
@@ -177,7 +177,7 @@
     if readfile(os.path.join('db', 'fs-type')) != 'fsfs':
         raise SystemExit("Path '%s' doesn't contain a FSFS repository"%options.repo_dir)

- return pipe(["svnlook","youngest","."])
+ return pipe([svnlook,"youngest","."])

 def list_repo_backups():
     '''Return a sorted list of backups for this repository.'''
@@ -254,7 +254,7 @@
     rsync_dest = os.path.join(backup_tmpdir,'')

     # copy db/current. -R tells rsync to use relative pathnames.
- if runcmd(['rsync', '-aR', 'db/current', rsync_dest]):
+ if runcmd([rsync, '-aR', 'db/current', rsync_dest]):
         raise "%s: rsync failed" %sys.argv[0]

     # Now copy everything else.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 15 00:13:45 2006

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.