Explorar el Código

sendmail: list commits in chronological order

tags/v0.8.0
James Moger hace 12 años
padre
commit
0fb1fd48c4
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      groovy/sendmail.groovy

+ 3
- 3
groovy/sendmail.groovy Ver fichero

switch (command.type) { switch (command.type) {
case ReceiveCommand.Type.CREATE: case ReceiveCommand.Type.CREATE:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size() commitCount += commits.size()
if (commits.size() > 0) { if (commits.size() > 0) {
// new branch // new branch
} }
break break
case ReceiveCommand.Type.UPDATE: case ReceiveCommand.Type.UPDATE:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size() commitCount += commits.size()
// fast-forward branch commits table // fast-forward branch commits table
changes += "$branchBreak $ref branch updated ($commits.size commits)\n$branchBreak" changes += "$branchBreak $ref branch updated ($commits.size commits)\n$branchBreak"
changes += '\n' changes += '\n'
break break
case ReceiveCommand.Type.UPDATE_NONFASTFORWARD: case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name)
def commits = JGitUtils.getRevLog(r, command.oldId.name, command.newId.name).reverse()
commitCount += commits.size() commitCount += commits.size()
// non-fast-forward branch commits table // non-fast-forward branch commits table
changes += "$branchBreak $ref branch updated [NON fast-forward] ($commits.size commits)\n$branchBreak" changes += "$branchBreak $ref branch updated [NON fast-forward] ($commits.size commits)\n$branchBreak"

Cargando…
Cancelar
Guardar