Moodle Community Sites

Display the commit author fullname instead of the username in the git mirror

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Component/s: CVS repository
  • Labels:
    None

Description

Firstly - git.moodle.org should be added as a component of MDLSITE

When runnning git cvsimport, we can use -A parameter to produce more git-ish log using the data from cvsadmin. This is what works for me:

$ git cvsimport -A cvs-authors.txt ...

See cvs-authors.txt attached for the list of users. This file was prepared manually. There shoudl be some automatic way how to generate it from cvsadmin module data.

Activity

Hide
Jordan Tomkinson added a comment -

I have added git.moodle.org as an MDLSITE component.

Are you talking about gitweb (http://git.moodle.org/) or command line git?

if you mean gitweb, the viewvc (http://cvs) page also displays usernames and not full names, looking through the CGI it would be pretty easy to change this if we really want...

Show
Jordan Tomkinson added a comment - I have added git.moodle.org as an MDLSITE component. Are you talking about gitweb (http://git.moodle.org/) or command line git? if you mean gitweb, the viewvc (http://cvs) page also displays usernames and not full names, looking through the CGI it would be pretty easy to change this if we really want...
Hide
David Mudrak added a comment -

I was talking about the log produced by command line git as I believe that the gitweb just displays what is in the log.

This is not a killer, of course, but it makes our git mirror more git-ish . Please do not spend to much time on this - simply adding the "-A" parameter to your current script where cvsimport is done would be more than enough for now.

Thanks

Show
David Mudrak added a comment - I was talking about the log produced by command line git as I believe that the gitweb just displays what is in the log. This is not a killer, of course, but it makes our git mirror more git-ish . Please do not spend to much time on this - simply adding the "-A" parameter to your current script where cvsimport is done would be more than enough for now. Thanks
Hide
Jordan Tomkinson added a comment -

I've written a little script that compiles a suitable file for the "-A" parameter of git-cvsimport based on whats in the cvs passwd file
Have to wait until the next import runs, but it should work ok

Show
Jordan Tomkinson added a comment - I've written a little script that compiles a suitable file for the "-A" parameter of git-cvsimport based on whats in the cvs passwd file Have to wait until the next import runs, but it should work ok
Hide
Dan Poltawski added a comment -

Is there a way to update the email address in the cvs password file? I guess it has my old moodle.org email address?

Show
Dan Poltawski added a comment - Is there a way to update the email address in the cvs password file? I guess it has my old moodle.org email address?
Hide
Jordan Tomkinson added a comment -

email is taken from the CVS tab in the developers section of moodle.org
login and update your account details to change the email address

Show
Jordan Tomkinson added a comment - email is taken from the CVS tab in the developers section of moodle.org login and update your account details to change the email address
Hide
Dan Poltawski added a comment -

It was already set to something different, but I have changed it again to see if this helps.

Dan

Show
Dan Poltawski added a comment - It was already set to something different, but I have changed it again to see if this helps. Dan

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: