DescriptionRefactor source_control.py and add a test.
Originally, Simon made SourceControl a class becaused we expected to
add a SvnSourceControl subclass which implemented the same methods in
different ways. However, after the git transition we're fairly sure
that we don't want to do this.
So, all of the functions in the SourceControl class can be made top-level
functions that don't need a "self" argument. This way, there's no need
to pass around a bogus SourceControl object; the functions can be called
directly.
I also added tests for some methods that seemed relatively testable.
PTAL and give suggestions :-)
BUG=
Committed: https://crrev.com/880741668d3ed0e08ea2229bb8965998abe775a3
Cr-Commit-Position: refs/heads/master@{#299851}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Remove docstring for SyncToRevision. #Patch Set 3 : Rebased #
Messages
Total messages: 11 (2 generated)
|