[prev in list] [next in list] [prev in thread] [next in thread]
List: svk-commit
Subject: [svk-commit] r2402 - in trunk: utils
From: nobody () bestpractical ! com (nobody () bestpractical ! com)
Date: 2007-06-05 12:30:20
Message-ID: 20070605163019.261A54D8160 () diesel ! bestpractical ! com
[Download RAW message or body]
Author: jesse
Date: Tue Jun 5 12:30:18 2007
New Revision: 2402
Modified:
trunk/ (props changed)
trunk/utils/pullyu
Log:
r57997@pinglin: jesse | 2007-06-05 12:29:43 -0400
* pullyu documentation updates from David Morton <mortonda@dgrmm.net>
Modified: trunk/utils/pullyu
==============================================================================
--- trunk/utils/pullyu (original)
+++ trunk/utils/pullyu Tue Jun 5 12:30:18 2007
@@ -8,12 +8,26 @@
my $revspec;
+sub usage {
+ print <<EOUSAGE;
+Usage: pullyu [-r=revision] repopath mirrorpath
+ Prints out a svn dump file from a complete mirrored svk depot.
+ repopath is the path to your local svk repository, usually ~/.svk/local
+ mirrorpath is the path to the mirror, such as /mirrors/myproject
+
+ Example: ./pullyu ~/.svk/local /mirrors/myproject > myproject-svn-dumpfile
+
+EOUSAGE
+exit;
+}
+
+
die unless GetOptions ("r|revision=s@" => \$revspec);
use SVN::Dump 0.03;
-my $repospath = shift or die "repospath required.\n";
-my $path = shift or die "path required.\n";
+my $repospath = shift or usage();
+my $path = shift or usage();
my $repos = SVN::Repos::open($repospath) or die $!;
my $depot = SVK::Depot->new({ depotname => '', repos => $repos, repospath => $repospath});
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic