legacy: move LegacyRepository, LegacyRemoteRepository, RepoObj1 into borg.legacy package, refs #9556#9559
legacy: move LegacyRepository, LegacyRemoteRepository, RepoObj1 into borg.legacy package, refs #9556#9559mr-raj12 wants to merge 2 commits intoborgbackup:masterfrom
Conversation
8d69edb to
c918e35
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9559 +/- ##
==========================================
- Coverage 83.36% 83.35% -0.02%
==========================================
Files 87 88 +1
Lines 15481 15495 +14
Branches 2325 2326 +1
==========================================
+ Hits 12906 12916 +10
- Misses 1821 1825 +4
Partials 754 754 ☔ View full report in Codecov by Sentry. |
|
This is hard to review due to the code moves. Can you use an approach using git mv (when possible), commit, modify? |
|
Sure |
c918e35 to
472322e
Compare
472322e to
15bec44
Compare
|
fixed with git mv, now it shows in a proper way |
|
RepoObj1 is identical, just moved? |
yes, the same RepoObj1 with updated relative imports |
|
I have updated the description to match what actually landed after the git mv rework. Two commits:
RepoObj1 is identical, only the imports changed (. to ..) as it's one level deeper now. Couldn't git mv a class out of a file that still has other code, so that one was a manual extract only. There's still a Follow-up PRs I have planned (each separate, building on this):
After all of this merges, removing borg.legacy is a single directory delete with no impact on v2 code. |
Description
Moves Borg 1.x legacy code into
borg.legacy, refs #9556.legacyrepository.py→legacy/repository.py(git mv)legacyremote.py→legacy/remote.py(git mv)RepoObj1extracted fromrepoobj.py→legacy/repoobj.pyborg.legacy.*pathsrepoobj.pykeeps a re-export forRepoObj1since the file still exists forRepoObjNo logic changes. Just file moves, import path updates (
.foo→..foo), and one logger name fix in the tests.No stubs at old paths for the moved files, they weren't public API.
Refs #9556
Checklist