Commit 35effe1b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Two minor changes:

* Prefix the svn importer script with a 'ulimit -c -' to avoid core
  dump file from some internal SVN thing, that appears to be
  harmeless.

* Use rsync instead of tar to archive the archives; it appears to be
  smarter about setgid directories.
parent 61083ad9
...@@ -493,8 +493,9 @@ sub ArchiveSavePoint($;$$$) ...@@ -493,8 +493,9 @@ sub ArchiveSavePoint($;$$$)
print STDERR "ArchiveSavePoint: Cannot chdir to $checkin!\n"; print STDERR "ArchiveSavePoint: Cannot chdir to $checkin!\n";
goto bad; goto bad;
} }
mysystem("$IMPORTER -no_user_input file://$repodir ". # Avoid a core file from svn.
" $view/savepoint . " . mysystem("ulimit -c 0; $IMPORTER -no_user_input file://$repodir ".
" $view/savepoint . " .
($debug < 2 ? "> /dev/null 2>&1" : "")) ($debug < 2 ? "> /dev/null 2>&1" : ""))
== 0 or goto bad; == 0 or goto bad;
...@@ -1052,12 +1053,9 @@ sub ArchiveArchive($) ...@@ -1052,12 +1053,9 @@ sub ArchiveArchive($)
return -1; return -1;
} }
} }
# mysystem("$RSYNC -a --delete $directory/repo $target");
# Tar up the whole thing and move it across.
#
mysystem("$TAR cf - -C $directory repo | tar xf - -C $target");
if ($?) { if ($?) {
print STDERR "ArchiveArchive: Could not copy in $directory\n"; print STDERR "ArchiveArchive: Could not copy $directory/repo.\n";
return -1; return -1;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment