aboutsummaryrefslogtreecommitdiffstats
path: root/src/svn.cpp
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-05-29 09:13:22 +0100
committerColin Guthrie <colin@mageia.org>2014-05-29 09:13:22 +0100
commita4d2c84dc99e876419ec222de12a4609d49b92c4 (patch)
tree50a0904a9b68dad724e66adff264ad5c151041ce /src/svn.cpp
parentf8ed2101da602b39e6b914382baa4fd6872b7ea9 (diff)
downloadsvn2git-a4d2c84dc99e876419ec222de12a4609d49b92c4.tar
svn2git-a4d2c84dc99e876419ec222de12a4609d49b92c4.tar.gz
svn2git-a4d2c84dc99e876419ec222de12a4609d49b92c4.tar.bz2
svn2git-a4d2c84dc99e876419ec222de12a4609d49b92c4.tar.xz
svn2git-a4d2c84dc99e876419ec222de12a4609d49b92c4.zip
Return after renaming a repo to prevent importing the empty commit.
This should be fine provided the cp did not also change files... If there was a way to find out if the change is a net null, that would be useful here. Also, as we only use tags for markrelease on master branch, we can ignore any cross repo tag copies as they will just clober the data we have already.
Diffstat (limited to 'src/svn.cpp')
-rw-r--r--src/svn.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/svn.cpp b/src/svn.cpp
index 6bb0d2b..1a66231 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -793,6 +793,17 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change_t *cha
return EXIT_FAILURE;
repositories->remove(renamed);
repositories->insert(repository, repo);
+
+ // NB If there are other changes along with the svn cp, this is not
+ // necessarily the correct thing to do and some changes may be lost
+ // but to not return here causes a problem where all the release tags
+ // are lost and and empty commit is kept in the history (svn mv should
+ // not result in a git commit).
+ return EXIT_SUCCESS;
+ }
+ if (repo && prevbranch.startsWith("refs/tags/")) {
+ qWarning() << "WARN: Ignoring tag svn-cp as we hope that repo rename will maintain old mark-release tags";
+ return EXIT_SUCCESS;
}
} else if (path != prevpath) {
if (!repo && !(repo = autoCreateRepo(change, rule, repository, branch)))
span> 'allow_user_list' => N("List users on display managers (kdm and gdm)"), 'allow_xauth_from_root' => N("Export display when passing from root to the other users"), 'allow_x_connections' => N("Allow X Window connections"), 'allow_xserver_to_listen' => N("Authorize TCP connections to X Window"), 'authorize_services' => N("Authorize all services controlled by tcp_wrappers"), 'create_server_link' => N("Chkconfig obey msec rules"), 'enable_at_crontab' => N("Enable \"crontab\" and \"at\" for users"), 'enable_console_log' => N("Syslog reports to console 12"), 'enable_dns_spoofing_protection' => N("Name resolution spoofing protection"), 'enable_ip_spoofing_protection' => N("Enable IP spoofing protection"), 'enable_libsafe' => N("Enable libsafe if libsafe is found on the system"), 'enable_log_strange_packets' => N("Enable the logging of IPv4 strange packets"), 'enable_msec_cron' => N("Enable msec hourly security check"), 'enable_pam_wheel_for_su' => N("Enable su only from the wheel group members"), 'enable_password' => N("Use password to authenticate users"), 'enable_promisc_check' => N("Ethernet cards promiscuity check"), 'enable_security_check' => N("Daily security check"), 'enable_sulogin' => N("Sulogin(8) in single user level"), 'no_password_aging_for' => N("No password aging for"), 'password_aging' => N("Set password expiration and account inactivation delays"), 'password_history' => N("Password history length"), 'password_length' => N("Password minimum length and number of digits and upcase letters"), 'set_root_umask' => N("Root umask"), 'set_shell_history_size' => N("Shell history size"), 'set_shell_timeout' => N("Shell timeout"), 'set_user_umask' => N("User umask"), CHECK_OPEN_PORT => N("Check open ports"), CHECK_PASSWD => N("Check for unsecured accounts"), CHECK_PERMS => N("Check permissions of files in the users' home"), CHECK_PROMISC => N("Check if the network devices are in promiscuous mode"), CHECK_SECURITY => N("Run the daily security checks"), CHECK_SGID => N("Check additions/removals of sgid files"), CHECK_SHADOW => N("Check empty password in /etc/shadow"), CHECK_SUID_MD5 => N("Verify checksum of the suid/sgid files"), CHECK_SUID_ROOT => N("Check additions/removals of suid root files"), CHECK_UNOWNED => N("Report unowned files"), CHECK_WRITABLE => N("Check files/directories writable by everybody"), CHKROOTKIT_CHECK => N("Run chkrootkit checks"), MAIL_EMPTY_CONTENT => N("Do not send empty mail reports"), MAIL_USER => N("If set, send the mail report to this email address else send it to root"), MAIL_WARN => N("Report check result by mail"), RPM_CHECK => N("Run some checks against the rpm database"), SYSLOG_WARN => N("Report check result to syslog"), TTY_WARN => N("Reports check result to tty"), ); } 1;