[svk-commit] r2402 - in trunk: utils

nobody at bestpractical.com nobody at bestpractical.com
Tue Jun 5 12:30:19 EDT 2007


Author: jesse
Date: Tue Jun  5 12:30:18 2007
New Revision: 2402

Modified:
   trunk/   (props changed)
   trunk/utils/pullyu

Log:
 r57997 at pinglin:  jesse | 2007-06-05 12:29:43 -0400
  * pullyu documentation updates from David Morton <mortonda at 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});


More information about the svk-commit mailing list