Commit Graph
10149 Commits
Author SHA1 Message Date
Daniel Radünz ed5daa60b5 Simplified code by removing one loop 2017-09-30 22:05:54 +02:00
Daniel Radünz 4e3d5d3e81 Fixed typo in option name 2017-09-30 22:05:54 +02:00
Daniel Radünz 28ad1e1bbd Better example in option description 2017-09-30 22:05:30 +02:00
Daniel Radünz 0a4a6edca1 Renamed all occurrences of "staggered version" to "retention policy" 2017-09-30 22:05:30 +02:00
Daniel Radünz 7b176e4dc2 Check validity of keep-staggered-versions option value 2017-09-30 22:05:30 +02:00
Daniel Radünz be19329d7f Compact if new the option is used 2017-09-30 22:05:29 +02:00
Daniel Radünz 04b7bf38c3 Reworded option description and added example 2017-09-30 22:05:29 +02:00
Daniel Radünz 40db42b29b Moved code related to deciding which backups to delete from Options into the DeleteHandler
Added logging
2017-09-30 22:05:29 +02:00
Daniel Radünz 3ec1fabc57 initial commit of staggered versioning feature 2017-09-30 12:07:02 +02:00
Kenneth Hsu 65593ddd93 Remove unncessary sorting.
The original implementation only sorted the collection if there were
duplicates.  This indicates that the result does not really need to be
sorted.
2017-09-29 21:41:41 -07:00
Kenneth Hsu 9edec2b53e Add comments to clarify tests. 2017-09-29 21:10:21 -07:00
Kenneth Hsu ff7d57a9f4 Add test for obtaining unique items from empty collection. 2017-09-29 21:09:29 -07:00
Kenneth SkovhedeandGitHub 94f8d9852f Merge pull request #2779 from atward/syno-mono
Find Synology mono package if available
v2.0.2.9-2.0.2.9_canary_2017-10-01
2017-09-29 14:04:10 +02:00
Adam Ward d2e72f6036 Find Synology mono package if available 2017-09-29 21:48:12 +10:00
Kenneth Hsu c8ac480c09 Use helper method to get unique items and duplicates. 2017-09-28 22:02:05 -07:00
Kenneth Hsu 6abe087c18 Use helper method to get unique items and duplicates. 2017-09-28 21:55:15 -07:00
Kenneth Hsu 146f4aaa5b Use helper method to get unique items and duplicates. 2017-09-28 21:48:38 -07:00
Kenneth Hsu cb4972f900 Add test for obtaining unique items with custom comparer. 2017-09-28 21:30:29 -07:00
Kenneth Hsu 705bbe198f Modify test to use string data.
This will allow us to more easily test the case where a custom equality
comparer is provided.
2017-09-28 21:30:29 -07:00
Kenneth Hsu 4b5ecedc31 Allow custom equality comparer when obtaining unique items. 2017-09-28 21:30:29 -07:00
Kenneth Hsu c658458e01 Add unit test for method to get unique items. 2017-09-28 21:30:29 -07:00
Kenneth Hsu f2699e01dc Add method to get unique items from a collection.
For cases where we want both the unique items as well as the duplicates,
this should be more performant than using LINQ.
2017-09-28 21:30:29 -07:00
Kenneth SkovhedeandGitHub 33314ce7c9 Merge pull request #2763 from tygill/fix/list-ienumerable
Change IBackend.List() to return IEnumerable instead of List
2017-09-28 11:06:41 +02:00
Kenneth SkovhedeandGitHub 11be1ba73b Merge pull request #2770 from warwickmm/bugfix/bad_string_format_item
Fix incorrect format item in format string
2017-09-28 11:02:54 +02:00
Kenneth SkovhedeandGitHub 7af7c4e0a5 Merge pull request #2771 from warwickmm/refactor/avoid_unnecessary_enumeration
Avoid unnecessary enumeration
2017-09-28 11:02:33 +02:00
Kenneth SkovhedeandGitHub 1f0f73da6f Merge pull request #2772 from warwickmm/refactor/remove_string_format
Remove unnecessary call to String.Format
2017-09-28 11:00:02 +02:00
Kenneth SkovhedeandGitHub 3411d46474 Merge pull request #2773 from warwickmm/refactor/convert_if_to_switch
Convert if statements to switch statements for enums
2017-09-28 10:59:15 +02:00
Kenneth Skovhede 7ed1362e4c Merge branch 'master' into concurrent_processing
# Conflicts:
#	Duplicati/Library/Main/Operation/BackupHandler.cs
2017-09-27 09:58:29 +02:00
Kenneth Skovhede 3ceb1087a7 Merge branch 'master' of github.com:duplicati/duplicati 2017-09-27 09:55:49 +02:00
Kenneth Hsu 4673fe8eee Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:32:58 -07:00
Kenneth Hsu bd98273067 Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:01:33 -07:00
Kenneth Hsu 210ecdf118 Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 21:00:19 -07:00
Kenneth Hsu 0738c5b624 Remove unnecessary call to String.Format. 2017-09-26 20:43:27 -07:00
Kenneth Hsu 79e0f69506 Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 20:20:14 -07:00
Kenneth Hsu 5da12a704d Convert if statement to switch statement.
When the comparison is performed on an enum, using a switch statement
can allow for additional compiler optimizations.
2017-09-26 20:13:40 -07:00
Kenneth Hsu c082b18389 Declare variable outside of if statement.
This will allow us to more easily convert the if statement to a switch
statement.
2017-09-26 20:10:19 -07:00
Kenneth Hsu 4edf8536da Remove unused argument in string formatting. 2017-09-26 19:56:29 -07:00
Kenneth Hsu 59703e268c Avoid unnecessary enumeration.
Instead of enumerating the entire sequence and checking that the number
of elements is positive, we can simply check to see if the sequence
contains at least one element.
2017-09-26 19:45:07 -07:00
Kenneth Hsu ce1577fbc2 Fix incorrect format item in format string. 2017-09-26 19:32:08 -07:00
Kenneth Skovhede 37e42b718d Fix not shutting down backendmanager if it is required for something else.
This fixes #2759
2017-09-26 22:45:24 +02:00
Kenneth SkovhedeandGitHub 436dd7f017 Merge pull request #2761 from warwickmm/refactor/simplify_duplicate_file_check
Use simpler data structures when detecting duplicate filenames
2017-09-26 15:42:46 +02:00
Kenneth SkovhedeandGitHub a3270e4323 Merge pull request #2762 from warwickmm/improve_argument_exceptions
Improve construction of ArgumentExceptions
2017-09-26 15:42:07 +02:00
Kenneth Skovhede 9c0c5fbb97 Merge branch 'master' into concurrent_processing 2017-09-26 14:26:09 +02:00
Kenneth Skovhede 66feb4f25a Merge branch 'feature/fix-zip-methods' 2017-09-26 14:25:23 +02:00
Kenneth Skovhede a4452d9add Merge branch 'master' of github.com:duplicati/duplicati 2017-09-26 14:24:35 +02:00
Kenneth Skovhede 51084ada57 Merge branch 'feature/use-faster-hashing' 2017-09-26 14:24:20 +02:00
Kenneth Skovhede a955daca3f Changed the reported zip compression methods to reflect what is actually supported by SharpCompress 2017-09-26 14:06:11 +02:00
Kenneth Skovhede d15c0656cb Updated FasterHashing 2017-09-26 13:09:21 +02:00
Kenneth Skovhede 640ec634b7 Increased delays in unittest due to faster hashing performance 2017-09-26 09:41:27 +02:00
Tyler Gill 44c53d3eb1 Merge branch 'master' of https://github.com/duplicati/duplicati into fix/list-ienumerable 2017-09-25 23:19:38 -06:00