Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: git_cl/test/rename.sh

Issue 5012006: Move git-cl into depot_tools.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « git_cl/test/push-from-logs.sh ('k') | git_cl/test/save-description-on-failure.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl/test/rename.sh
===================================================================
--- git_cl/test/rename.sh (revision 0)
+++ git_cl/test/rename.sh (revision 0)
@@ -0,0 +1,36 @@
+#!/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"
+ export EDITOR=/bin/true
+ test_expect_success "upload succeeds" \
+ "$GIT_CL upload -m test master... | grep -q 'Issue created'"
+
+ # 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
Property changes on: git_cl/test/rename.sh
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « git_cl/test/push-from-logs.sh ('k') | git_cl/test/save-description-on-failure.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698