diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php
index ca8ec53..2ee523b 100644
--- a/Source/MantisSourcePlugin.class.php
+++ b/Source/MantisSourcePlugin.class.php
@@ -35,7 +35,7 @@
'EVENT_SOURCE_PRECOMMIT' => 'precommit',
'EVENT_SOURCE_COMMIT' => 'commit',
- 'EVENT_SOURCE_IMPORT_REPO' => 'import_repo',
+ 'EVENT_SOURCE_IMPORT_FULL' => 'import_full',
'EVENT_SOURCE_IMPORT_LATEST' => 'import_latest',
);
}
@@ -57,7 +57,7 @@
function precommit( $p_event ) {}
function commit( $p_event, $p_repo, $p_data ) {}
- function import_repo( $p_event, $p_repo ) {}
+ function import_full( $p_event, $p_repo ) {}
function import_latest( $p_event, $p_repo ) {}
}
diff --git a/Source/Source.php b/Source/Source.php
index 1c1d8b4..78b7468 100644
--- a/Source/Source.php
+++ b/Source/Source.php
@@ -65,7 +65,7 @@
'EVENT_SOURCE_PRECOMMIT' => EVENT_TYPE_FIRST, # Allow plugins to try finding commit information before Source looks
'EVENT_SOURCE_COMMIT' => EVENT_TYPE_FIRST, # Source control commit handling, passed commit details from checkin script
- 'EVENT_SOURCE_IMPORT_REPO' => EVENT_TYPE_FIRST, # Import an existing repository from scratch
+ 'EVENT_SOURCE_IMPORT_FULL' => EVENT_TYPE_FIRST, # Import an existing repository from scratch
'EVENT_SOURCE_IMPORT_LATEST' => EVENT_TYPE_FIRST, # Import the latest changesets from a repository
);
}
diff --git a/Source/lang/strings_english.txt b/Source/lang/strings_english.txt
index 7653380..15fbd59 100644
--- a/Source/lang/strings_english.txt
+++ b/Source/lang/strings_english.txt
@@ -44,7 +44,8 @@
$s_plugin_Source_select_one = '(Select one)';
$s_plugin_Source_back = 'Back to Index';
-$s_plugin_Source_import_data = 'Import Data';
+$s_plugin_Source_import_full = 'Import Everything';
+$s_plugin_Source_import_latest = 'Import Latest Data';
$s_plugin_Source_related_changesets = 'Related Changesets';
$s_plugin_Source_configuration = 'Configuration';
diff --git a/Source/pages/repo_import.php b/Source/pages/repo_import.php
deleted file mode 100644
index fb4fffc..0000000
--- a/Source/pages/repo_import.php
+++ /dev/null
@@ -1,52 +0,0 @@
-id = 0;
-$t_new_repo->name = 'Import ' . date( 'Y-m-d H:i:s' );
-$t_new_repo->save();
-
-$t_status = event_signal( 'EVENT_SOURCE_IMPORT_REPO', array( $t_new_repo ) );
-
-if ( $t_status ) {
- $t_new_repo->name = $t_repo->name;
- $t_new_repo->save();
-
- SourceRepo::delete( $t_repo->id );
-
- echo '
@@ -56,9 +56,9 @@ | |||
+ | |||
- + + |