Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] more (D)VCS abstract. #20

Open
ghost opened this issue Jan 9, 2016 · 0 comments
Open

[Feature] more (D)VCS abstract. #20

ghost opened this issue Jan 9, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2016

Hello! Just a little thought that I had.

I was looking at sam and thought that it is strange that it only supports git...
It would have been better if it was possible to use different (D)VCSs like SVN, Bazaar or Mercurial.

I know this would require a little tinkering with the classes to begin with (make an abstract Repo class and extend from that (GitRepo, BzrRepo, SvnRepo, HgRepo)) and make a URL resolver (If it is a Launchpad's bzr URL it starts with "lp:" for example, whilst their git URLs do not).

There are a few problems with this: one in that it can be hard to resolve what type of repository one is dealing with. The other problem is that the UI (command line) needs to have a little change of language (clone to something else to be more generic -- git clone, hg clone, bzr branch, svn checkout, etc -- are the same basically).

The first problem could be solved by changing the YAML format a little (adding a Type field), but that could break stuff.

Just a thought. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants