t / t9116-git-svn-log.shon commit apply: get rid of --index-info in favor of --build-fake-ancestor (7a98869)
   1#!/bin/sh
   2#
   3# Copyright (c) 2007 Eric Wong
   4#
   5
   6test_description='git-svn log tests'
   7. ./lib-git-svn.sh
   8
   9test_expect_success 'setup repository and import' "
  10        mkdir import &&
  11        cd import &&
  12                for i in trunk branches/a branches/b \
  13                         tags/0.1 tags/0.2 tags/0.3; do
  14                        mkdir -p \$i && \
  15                        echo hello >> \$i/README || exit 1
  16                done && \
  17                svn import -m test . $svnrepo
  18                cd .. &&
  19        git-svn init $svnrepo -T trunk -b branches -t tags &&
  20        git-svn fetch &&
  21        git reset --hard trunk &&
  22        echo bye >> README &&
  23        git commit -a -m bye &&
  24        git svn dcommit &&
  25        git reset --hard a &&
  26        echo why >> FEEDME &&
  27        git update-index --add FEEDME &&
  28        git commit -m feedme &&
  29        git svn dcommit &&
  30        git reset --hard trunk &&
  31        echo aye >> README &&
  32        git commit -a -m aye &&
  33        git svn dcommit
  34        "
  35
  36test_expect_success 'run log' "
  37        git reset --hard a &&
  38        git svn log -r2 trunk | grep ^r2 &&
  39        git svn log -r4 trunk | grep ^r4 &&
  40        git svn log -r3 | grep ^r3
  41        "
  42
  43test_expect_success 'run log against a from trunk' "
  44        git reset --hard trunk &&
  45        git svn log -r3 a | grep ^r3
  46        "
  47
  48test_done