Edgewall Software

Changes between Version 11 and Version 12 of 1.1/TracRepositoryAdmin


Ignore:
Timestamp:
Jun 13, 2015, 7:32:47 AM (4 years ago)
Author:
Ryan J Ollos
Comment:

Merged TracRepositoryAdmin@40.

Legend:

Unmodified
Added
Removed
Modified
  • 1.1/TracRepositoryAdmin

    v11 v12  
    162162#!/bin/sh
    163163while read oldrev newrev refname; do
    164         git rev-list --reverse $newrev ^$oldrev  | \
    165         while read rev; do
    166                 trac-admin /path/to/env changeset added <repos> $rev
    167         done
     164    if [ "$oldrev" = 0000000000000000000000000000000000000000 ]; then
     165        git rev-list --reverse "$newrev" --
     166    else
     167        git rev-list --reverse "$newrev" "^$oldrev" --
     168    fi | xargs trac-admin /path/to/env changeset added <repos>
    168169done
    169170}}}