Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
180Source Integration[All Projects] Generalpublic2010-10-11 05:332011-07-21 10:47
ReporterRoland Shaw 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary180: Full Import can change Repository Name to "Import Timestamp"
DescriptionWe have some (SVN-)repositories, which loose their names by doing a full import. When starting a full import, $t_repo->name is set to "Import " with the Timestamp :
Source/pages/repo_full_import.php:
$t_new_repo->name = 'Import ' . date( 'Y-m-d H:i:s' );


In the following while-block the name is only restored, if the last importsegment contains almost one element, otherwhise the block will be terminated by "break" without restoring the name.

A simple reordering can fix this (see "additional information").
Additional InformationPath/Fix:
@@ -30,6 +31,9 @@
     # import the next batch of changesets
     $t_changesets = $t_vcs->import_full( $t_new_repo );
 
+	# fix for loosing the repo name
+    $t_new_repo->name = $t_repo->name;
+
     # check for errors
     if ( !is_array( $t_changesets ) ) {
         $t_error = true;
@@ -41,7 +45,6 @@
         break;
     }
 
-	$t_new_repo->name = $t_repo->name;
     Source_Process_Changesets( $t_changesets, $t_new_repo );
 }
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (258)
obones (reporter)
2011-01-18 01:00

Thanks for this, it does fix that issue that I was having as well
User avatar (300)
John Reese (administrator)
2011-07-21 10:47

A "full import" is badly named, as it actually creates a new repo named with a placeholder, does an import, and then if it succeeds, it deletes the old repo data and renames the new one to match what the old one was named. Unless you specifically want to drop all your existing imported data, using "import latest" will do what you want/need it to do without creating multiple repos.

- Issue History
Date Modified Username Field Change
2010-10-11 05:33 Roland Shaw New Issue
2011-01-18 01:00 obones Note Added: 258
2011-07-21 10:47 John Reese Note Added: 300


Copyright © 2000 - 2012 MantisBT Group
Time: 0.1188 seconds.
memory usage: 8,322 KB
Powered by Mantis Bugtracker

hosted with
Linode