Skip to content

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

Description

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. :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions