summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d44e8cf)
raw | patch | inline | side by side (parent: d44e8cf)
author | Martin Langhoff <martin@catalyst.net.nz> | |
Wed, 2 Nov 2005 00:48:47 +0000 (13:48 +1300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 2 Nov 2005 00:57:38 +0000 (16:57 -0800) |
-P:: <cvsps-output-file>
Instead of calling cvsps, read the provided cvsps output file. Useful
for debugging or when cvsps is being handled outside cvsimport.
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Instead of calling cvsps, read the provided cvsps output file. Useful
for debugging or when cvsps is being handled outside cvsimport.
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-cvsimport.txt | patch | blob | history | |
git-cvsimport.perl | patch | blob | history |
index f5248c91cbb22901266bba31273a276698fe562c..a2f97b392a6eb2c60289837d19af5ee2cdf42cc8 100644 (file)
+
If you need to pass multiple options, separate them with a comma.
+-P:: <cvsps-output-file>
+ Instead of calling cvsps, read the provided cvsps output file. Useful
+ for debugging or when cvsps is being handled outside cvsimport.
+
-m::
Attempt to detect merges based on the commit message. This option
will enable default regexes that try to capture the name source
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index e3cad5a1caddf396e2331e4a23f3efc6db5018a7..0144670a578b154f611d3f0f9552af7078fecf2e 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
$SIG{'PIPE'}="IGNORE";
$ENV{'TZ'}="UTC";
-our($opt_h,$opt_o,$opt_v,$opt_k,$opt_u,$opt_d,$opt_p,$opt_C,$opt_z,$opt_i,$opt_s,$opt_m,$opt_M);
+our($opt_h,$opt_o,$opt_v,$opt_k,$opt_u,$opt_d,$opt_p,$opt_C,$opt_z,$opt_i,$opt_P, $opt_s,$opt_m,$opt_M);
sub usage() {
print STDERR <<END;
exit(1);
}
-getopts("hivmkuo:d:p:C:z:s:M:") or usage();
+getopts("hivmkuo:d:p:C:z:s:M:P:") or usage();
usage if $opt_h;
@ARGV <= 1 or usage();
unless (defined($opt_p) && $opt_p =~ m/--no-cvs-direct/) {
push @opt, '--cvs-direct';
}
- exec("cvsps",@opt,"-u","-A",'--root',$opt_d,$cvs_tree);
- die "Could not start cvsps: $!\n";
+ if ($opt_P) {
+ exec("cat", $opt_P);
+ } else {
+ exec("cvsps",@opt,"-u","-A",'--root',$opt_d,$cvs_tree);
+ die "Could not start cvsps: $!\n";
+ }
}