gcode-mirror / google-highly-open-participation-drupal

Automatically exported from code.google.com/p/google-highly-open-participation-drupal
0 stars 0 forks source link

Write a Version Control API backend for the Git RCS #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Version Control API module is a relatively new module that provides 
functions for interfacing with the server side of version control systems 
(VCS). In order to work, Version Control API needs at least one VCS 
backend module that provides the specific VCS's functionality. At the 
moment, only a back end for CVS has been written (see references).

For this task, you will create a module similar to the Version Control API 
-- CVS backend module but which instead provides an implementation of the 
Git version control system. You should also have a look at the example 
"FakeVCS backend" that ships with Version Control API itself, and the 
overall OVERVIEW.txt for a better understanding of the API's main concepts.

Your module should have functionality similar to what is currently present 
in the CVS backend.

Deliverables:

* A new versioncontrol_git.module that implements the required functions 
for Version Control API backends. These are mostly functions that 
transform the revision data from the database representation to the API's 
array format. Here's the exact list of required functions:
* hook_versioncontrol_backends()
* versioncontrol_git_get_commit_actions()
* versioncontrol_git_get_directory_item()
* versioncontrol_git_get_commit_branches()
* versioncontrol_git_get_branched_items()
* versioncontrol_git_get_tagged_items()
* versioncontrol_git_get_current_item_branch()
* versioncontrol_git_get_current_item_tag()
* versioncontrol_git_get_parent_item()
* ...and others that you might consider practicable - in particular, 
you'll probably need versioncontrol_git_commit() for managing additional 
commit data in the database.
* Functionality to import commits from Git logs, similar to the CVS 
backend's "log fetching" functionality.
* Hook scripts that enable recording and access control for commits, 
similar to the CVS backend's xcvs-* scripts.
* The task will be complete when the submitted module is marked as RTBC by 
one of the mentors.
* Develop a database table structure to store information that is required 
for repository configuration, user account properties and displaying 
transactions.

Post the module to http://drupal.org/node/212731

Resources:

* Version Control API Module ( http://drupal.org/project/versioncontrol)
* Version Control API -- CVS Backend ( http://drupal.org/project/
versioncontrol_cvs )
* Git (http://git.or.cz/)
* Git commit hooks (http://www.kernel.org/pub/software/scm/git/docs/
hooks.html )

Contact:

* chx ( http://drupal.org/user/9446)
* jpetso (http://drupal.org/user/56020)

Original issue reported on code.google.com by chx1...@gmail.com on 22 Jan 2008 at 1:40

GoogleCodeExporter commented 9 years ago
I claim this task.

Original comment by j.boomba...@gmail.com on 22 Jan 2008 at 4:08

GoogleCodeExporter commented 9 years ago
Here you go!

Original comment by dmitri...@gmail.com on 22 Jan 2008 at 4:11

GoogleCodeExporter commented 9 years ago
Initial submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 26 Jan 2008 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 26 Jan 2008 at 5:53

GoogleCodeExporter commented 9 years ago
Updated submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 27 Jan 2008 at 7:01

GoogleCodeExporter commented 9 years ago
Updated submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 27 Jan 2008 at 11:05

GoogleCodeExporter commented 9 years ago
Updated submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 31 Jan 2008 at 5:41

GoogleCodeExporter commented 9 years ago
Updated submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 1 Feb 2008 at 5:12

GoogleCodeExporter commented 9 years ago
Updated submission. Details at http://drupal.org/node/212731.

Original comment by j.boomba...@gmail.com on 3 Feb 2008 at 7:09

GoogleCodeExporter commented 9 years ago
Nice job, please upload your final code here.

Original comment by chx1...@gmail.com on 3 Feb 2008 at 4:11

GoogleCodeExporter commented 9 years ago
Final submission.

Original comment by j.boomba...@gmail.com on 3 Feb 2008 at 7:22

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, you're all set.  Great job!

Original comment by acli...@gmail.com on 3 Feb 2008 at 7:25

GoogleCodeExporter commented 9 years ago
A few minor issues were found and fixed so I figured I upload fixed version.

Original comment by j.boomba...@gmail.com on 3 Feb 2008 at 8:00

Attachments: