summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fa9204)
raw | patch | inline | side by side (parent: 2fa9204)
author | Matthias Urlichs <smurf@smurf.noris.de> | |
Tue, 11 Oct 2005 15:02:45 +0000 (17:02 +0200) | ||
committer | Matthias Urlichs <smurf@smurf.noris.de> | |
Tue, 11 Oct 2005 15:02:45 +0000 (17:02 +0200) |
Some remains of CVS still lingered. Removed.
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
git-svnimport.perl | patch | blob | history |
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 0462c31f7ec56ebc950112517480a9db73503013..b976841efd276595770a51562ad7ce9b1d51f743 100755 (executable)
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
#
# The basic idea is to pull and analyze SVN changes.
#
-# Checking out the files is done by a single long-running CVS connection
-# / server process.
+# Checking out the files is done by a single long-running SVN connection.
#
# The head revision is on branch "origin" by default.
# You can change that with the '-o' option.
my $trunk_name = $opt_T || "trunk";
my $branch_name = $opt_b || "branches";
-@ARGV <= 1 or usage();
+@ARGV == 1 or usage();
$opt_o ||= "origin";
$opt_s ||= 1;
my $git_tree = $opt_C;
$git_tree ||= ".";
-my $cvs_tree;
-if ($#ARGV == 0) {
- $cvs_tree = $ARGV[0];
-} elsif (-f 'CVS/Repository') {
- open my $f, '<', 'CVS/Repository' or
- die 'Failed to open CVS/Repository';
- $cvs_tree = <$f>;
- chomp $cvs_tree;
- close $f;
-} else {
- usage();
-}
+my $svn_url = $ARGV[0];
our @mergerx = ();
if ($opt_m) {
package main;
-my $svn = SVNconn->new($cvs_tree);
+my $svn = SVNconn->new($svn_url);
sub pdate($) {
open BRANCHES,">>", "$git_dir/svn2git";
-
-## cvsps output:
-#---------------------
-#PatchSet 314
-#Date: 1999/09/18 13:03:59
-#Author: wkoch
-#Branch: STABLE-BRANCH-1-0
-#Ancestor branch: HEAD
-#Tag: (none)
-#Log:
-# See ChangeLog: Sat Sep 18 13:03:28 CEST 1999 Werner Koch
-#Members:
-# README:1.57->1.57.2.1
-# VERSION:1.96->1.96.2.1
-#
-#---------------------
-
-my $state = 0;
-
sub get_file($$$) {
my($rev,$branch,$path) = @_;