Core/DBUpdater: Add the possibility to limit the remove of orphaned entries.

* This will save you from loosing your update history if you use a repository in bad state (revision or branch) by mistake.
* Also turned 1 error message into a warning

(cherry picked from commit 966282fbed)
(cherry picked from commit 3ad7776d50)
This commit is contained in:
Naios
2015-03-24 12:58:55 +01:00
parent 1944b3bce5
commit 4201ca021b
5 changed files with 38 additions and 18 deletions

View File

@@ -227,13 +227,16 @@ Updates.ArchivedRedundancy = 0
Updates.AllowRehash = 1
#
# Updates.CleanDeadRef
# Description: Cleans dead/ orphaned references that occure if a update was deleted or renamed and edited.
# Updates.CleanDeadRefMaxCount
# Description: Cleans dead/ orphaned references that occur if an update was removed or renamed and edited in one step.
# It only starts the clean up if the count of the missing updates is below or equal the Updates.CleanDeadRefMaxCount value.
# This way prevents erasing of the update history due to wrong source directory state (maybe wrong branch or bad revision).
# Disable this if you want to know if the database is in a possible "dirty state".
# Default: 1 - (Enabled)
# Default: 3 - (Enabled)
# 0 - (Disabled)
# -1 - (Enabled - unlimited)
Updates.CleanDeadRef = 1
Updates.CleanDeadRefMaxCount = 3
#
###################################################################################################