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

create repository recognition method, #33

Open
lukaszb opened this issue Jan 23, 2011 · 0 comments
Open

create repository recognition method, #33

lukaszb opened this issue Jan 23, 2011 · 0 comments

Comments

@lukaszb
Copy link
Member

lukaszb commented Jan 23, 2011

Either utils, or Base repostitory should have a smart repository recognition method.
Needed for get_repo() auto alias filling.
And Would be handy in repo_scanners.

I think it should behave very strict. i.e. It has to be sure that given path is one and only one type of repository if it couldn't determine the proper scm raises an exception. e.x a repository under git&hg at the same time should raise an exception.

based on what hg does i think we should assume the fallowing

if dir contains only .hg dir => mercurial
if dir contains only .git dir => git
if dir contains only .bzr dir => bazar
if dir contains only .svn dir => svn

It should fallow symlinks,and (this one is to be decided) should not recurse into directories


Reference: https://bitbucket.org/marcinkuzminski/vcs/issues/33/

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

1 participant