[svk-commit] r2948 - trunk/t
nobody at bestpractical.com
nobody at bestpractical.com
Tue Jul 1 11:45:10 EDT 2008
Author: ruz
Date: Tue Jul 1 11:44:53 2008
New Revision: 2948
Added:
trunk/t/29update-merge-ticket.t
Log:
* add failing test
Added: trunk/t/29update-merge-ticket.t
==============================================================================
--- (empty file)
+++ trunk/t/29update-merge-ticket.t Tue Jul 1 11:44:53 2008
@@ -0,0 +1,51 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+use Test::More tests => 2;
+use File::Path;
+use Cwd;
+use SVK::Test;
+
+my ($xd, $svk) = build_test();
+our $output;
+my ($copath, $corpath) = get_copath ('smerge');
+$svk->mkdir ('-m', 'trunk', '//trunk');
+my $tree = create_basic_tree ($xd, '//trunk');
+$svk->cp ('-m', 'branch', '//trunk', '//local');
+$svk->cp ('-m', 'branch', '//local', '//local-another');
+$svk->co ('//trunk', $copath);
+append_file("$copath/me", "a change\n");
+$svk->ci ('-m', 'change file', $copath );
+
+$svk->switch ('//local-another', $copath);
+append_file("$copath/A/be", "a change\n");
+$svk->ci ('-m', 'change file', $copath );
+$svk->sm ('-Il', '//local-another', '//local' );
+
+$svk->switch ('//local at 4', $copath);
+$svk->sm ('//trunk', $copath);
+
+$svk->up ($copath);
+$svk->diff ($copath);
+is_output($svk, 'diff', [$copath],
+ [
+ '=== t/checkout/smerge/me',
+ '==================================================================',
+ "--- t/checkout/smerge/me\t(revision 8)",
+ "+++ t/checkout/smerge/me\t(local)",
+ '@@ -1,2 +1,3 @@',
+ ' first line in me',
+ ' 2nd line in me - mod',
+ '+a change',
+ '',
+ 'Property changes on: t/checkout/smerge',
+ '___________________________________________________________________',
+ 'Name: svk:merge',
+ ' -006e7783-1232-49bc-9c32-34e58aa7cb2d:/trunk:3',
+ ' +006e7783-1232-49bc-9c32-34e58aa7cb2d:/trunk:6',
+ ]
+);
+
+
+
More information about the svk-commit
mailing list