rename.sh 646 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash

# Renaming a file should show up as a rename in the review.

set -e

. ./test-lib.sh

setup_initsvn
setup_gitsvn

(
  set -e
  cd git-svn
  git config rietveld.server localhost:8080

  # Create a branch, rename a file, upload it.
  git checkout -q -b rename
  git mv test test2
  git commit -q -m "renamed"
21
  export EDITOR=$(which true)
22
  test_expect_success "upload succeeds" \
23
    "$GIT_CL upload -m test master | grep -q 'Issue created'"
24 25 26 27 28 29 30 31 32 33 34 35 36

  # Look at the uploaded patch and verify it is a rename patch.
  echo "Rename test not fully implemented yet.  :("
  exit 1
)

SUCCESS=$?

cleanup

if [ $SUCCESS == 0 ]; then
  echo PASS
fi