On Wed, 2010-09-15 at 00:19 +0200, Frank Becker wrote:
> Lucas Meneghel Rodrigues [2010-09-14, 19:59 +0200]:
> 
> Hi,
> 
> > Introduce a library with classes to abstract interaction
> > with version control system repositories. Right now, there is
> > only GitRepo implemented. Made server/git.py to use the
> > common_lib implementation (the server git class represents
> > the install of a git repo in a host).
> > 
> > Now, test writers and can use a shared API to check out and
> > update git code conveniently.
> I did a quick test. Worked very well for me.

Ok, then it's done:

http://autotest.kernel.org/changeset/4792

Divya, now you can use git checkout code in your tests, but that will
only work on svn trunk or HEAD of the git mirror. I recommend you use
our git mirror, it's easier to hack on autotest in case you're going to
send us any changes. You can read

http://autotest.kernel.org/wiki/GitWorkflow

For a quick tutorial on using git to contribute. In order to use the
GitRepo class, you can do the following:

from autotest_lib.client.common_lib import revision_control

git_repo = revision_control.GitRepo(repodir='/path/to/repodir',
giturl='git://giturl.git')

git_repo.get()

And so on and so forth. I hope this becomes useful for you,

Lucas

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to