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

Unified Diff: tests/checkout_test.py

Issue 10310034: Implement proper svn copy when a file is copied, moved or renamed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: remove git unit test Created 8 years, 7 months 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 | « checkout.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/checkout_test.py
diff --git a/tests/checkout_test.py b/tests/checkout_test.py
index 8128e0269b50d9be857b95018c6e599c1510d559..26cb4453dc24220c08df5ecadcd10319572030a4 100755
--- a/tests/checkout_test.py
+++ b/tests/checkout_test.py
@@ -397,7 +397,36 @@ class SvnCheckout(SvnBaseTest):
self._test_prepare(self._get_co(None))
def testMove(self):
- self._check_move(self._get_co(None))
+ co = self._get_co(None)
+ self._check_move(co)
+ out = subprocess2.check_output(
+ ['svn', 'status'], cwd=co.project_path)
+ expected = (
+ 'A + chromeos/views/webui_menu_widget.h\n'
+ 'D chromeos/views/DOMui_menu_widget.h\n')
+ self.assertEquals(expected, out)
+ # Make sure ancestry is what is expected;
+ env = os.environ.copy()
+ env['LANGUAGE'] = 'en_US.UTF-8'
+ out = subprocess2.check_output(
+ ['svn', 'info', 'chromeos/views/webui_menu_widget.h'],
+ cwd=co.project_path,
+ env=env)
+ values = dict(l.split(': ', 1) for l in out.splitlines() if l)
+ expected = {
+ 'Checksum': '65837bb3da662c8fa88a4a50940ea7c6',
+ 'Copied From Rev': '2',
+ 'Copied From URL':
+ '%strunk/chromeos/views/DOMui_menu_widget.h' % self.svn_base,
+ 'Name': 'webui_menu_widget.h',
+ 'Node Kind': 'file',
+ 'Path': 'chromeos/views/webui_menu_widget.h',
+ 'Repository Root': '%s' % self.svn_base.rstrip('/'),
+ 'Revision': '2',
+ 'Schedule': 'add',
+ 'URL': '%strunk/chromeos/views/webui_menu_widget.h' % self.svn_base,
+ }
+ self.assertEquals(expected, values)
class GitSvnCheckout(SvnBaseTest):
« no previous file with comments | « checkout.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698