-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract away SCM integration (#803)
The goal is to support different backends, like sapling.
- Loading branch information
Showing
8 changed files
with
120 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class SCM(object): | ||
def checkedOutCommitName(self, directory): | ||
raise NotImplementedError | ||
def branchOrRef(self, directory): | ||
raise NotImplementedError | ||
def lsRemote(self, remote): | ||
raise NotImplementedError | ||
def listRefsCmd(self): | ||
raise NotImplementedError | ||
def parseRefs(self, output): | ||
raise NotImplementedError | ||
def exec(self, *args, **kwargs): | ||
raise NotImplementedError | ||
def cloneCmd(self, spec, referenceRepo, usePartialClone): | ||
raise NotImplementedError | ||
def diffCmd(self, directory): | ||
raise NotImplementedError | ||
def checkUntracked(self, line): | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.