[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn commit: r33738 - trunk/subversion/tests/cmdline

From: Bert Huijben <bert_at_vmoo.com>
Date: Sun, 19 Oct 2008 17:26:03 +0200

> -----Original Message-----
> From: Neels J. Hofmeyr [mailto:neels_at_elego.de]
> Sent: Sunday, October 19, 2008 3:44 AM
> To: Subversion Developers
> Subject: Re: svn commit: r33738 - trunk/subversion/tests/cmdline
>
>
> Bert Huijben wrote:
> >> -----Original Message-----
> >> From: neels_at_tigris.org [mailto:neels_at_tigris.org]
> >> Sent: Saturday, October 18, 2008 9:29 PM
> >> To: svn_at_subversion.tigris.org
> >> Subject: svn commit: r33738 - trunk/subversion/tests/cmdline
> >>
> >> Author: neels
> >> Date: Sat Oct 18 12:29:23 2008
> >> New Revision: 33738
> >>
> >> Log:
> >> * subversion/tests/cmdline/merge_tests.py (del_differing_file): Fix
> >> merge_tests.py 103, its expected output was slightly off.
> >
> > The buildbots give:
> >
> > At least one test FAILED, checking <snip>/build/tests.log
> > XPASS: merge_tests.py 103: merge tries to delete a file of different
> content
> >
> > After this commit.
> >
> > This test should have failed, as it was marked XFail. (I don't see
> changes besides the tests here).
> >
> > Bert

        Hi Neels.
>
> Sorry, should have unmarked the XFail state: tree-conflicts fixed the
> issue.
> This patch only cosmetically changed the expected output from
> "Skipped.*tau"
> to
> "Skipped 'A/D/G3/tau'"
> and some more lines printed due to tree-conflicts detection.

Ah, thanks for the information, and thanks for removing the XFail mark.
>
> This expected output will have to change again as soon as tree-
> conflicts
> aren't reported on their parents anymore but on the victims themselves:
> "C A/D/G3/tau\n",
>
> Maybe you're right and I should rather change the expected output to
> the
> final goal. But like this it serves as a note that this tree-conflicts
> case
> is, technically, already working.

This specific test now only fails on the windows buildbot, as Windows uses '\' as directory separator in the output.

EXPECTED STDOUT:
Skipped 'A/D/G2/tau'
--- Merging r2 into 'A/D/G2':
C A/D/G2
Summary of conflicts:
  Tree conflicts: 1
   Skipped paths: 1
ACTUAL STDOUT:
Skipped 'A\D\G2\tau'
--- Merging r2 into 'A\D\G2':
C A\D\G2
Summary of conflicts:
  Tree conflicts: 1
   Skipped paths: 1

(See http://www.mobsol.be/buildbot/win32-xp%20VS2005/builds/1135/step-Test%20fsfs%2Bra_local/0 ).

I think most tests work around this difference by only checking parts of the path, but I would guess allowing / and \ as separator might work as well.

>
> Thanks for reviewing!
> ~Neels

No problem :)

Thanks,

        Bert
>
> >
> >> Modified:
> >> trunk/subversion/tests/cmdline/merge_tests.py
> >>
> >> Modified: trunk/subversion/tests/cmdline/merge_tests.py
> >> URL:
> >>
> http://svn.collab.net/viewvc/svn/trunk/subversion/tests/cmdline/merge_t
> >> ests.py?pathrev=33738&r1=33737&r2=33738
> >>
> =======================================================================
> >> =======
> >> --- trunk/subversion/tests/cmdline/merge_tests.py Sat Oct 18
> >> 12:25:34 2008 (r33737)
> >> +++ trunk/subversion/tests/cmdline/merge_tests.py Sat Oct 18
> >> 12:29:23 2008 (r33738)
> >> @@ -12220,8 +12220,22 @@ def del_differing_file(sbox):
> >> svntest.actions.run_and_verify_svn(None, None, [], 'propset',
> >> 'newprop', 'v', target+"/pi")
> >> # Should complain and "skip" it.
> >> - svn_merge(s_rev_tau, source, target, 'Skipped.*tau')
> >> - svn_merge(s_rev_pi, source, target, 'Skipped.*pi')
> >> + svn_merge(s_rev_tau, source, target, [
> >> + "Skipped 'A/D/G2/tau'\n",
> >> + "--- Merging r2 into 'A/D/G2':\n",
> >> + "C A/D/G2\n",
> >> + "Summary of conflicts:\n",
> >> + " Tree conflicts: 1\n",
> >> + " Skipped paths: 1\n"])
> >> +
> >> + svn_merge(s_rev_pi, source, target, [
> >> + "Skipped 'A/D/G2/pi'\n",
> >> + "--- Merging r3 into 'A/D/G2':\n",
> >> + "C A/D/G2\n",
> >> + "Summary of conflicts:\n",
> >> + " Tree conflicts: 1\n",
> >> + " Skipped paths: 1\n"])
> >> +
> >>
> >> # Copy a file, modify it, commit, and merge a deletion to it.
> >> target = 'A/D/G3'
> >> @@ -12231,8 +12245,21 @@ def del_differing_file(sbox):
> >> 'newprop', 'v', target+"/pi")
> >> svn_commit(target)
> >> # Should complain and "skip" it.
> >> - svn_merge(s_rev_tau, source, target, 'Skipped.*tau')
> >> - svn_merge(s_rev_pi, source, target, 'Skipped.*pi')
> >> + svn_merge(s_rev_tau, source, target, [
> >> + "Skipped 'A/D/G3/tau'\n",
> >> + "--- Merging r2 into 'A/D/G3':\n",
> >> + "C A/D/G3\n",
> >> + "Summary of conflicts:\n",
> >> + " Tree conflicts: 1\n",
> >> + " Skipped paths: 1\n"])
> >> +
> >> + svn_merge(s_rev_pi, source, target, [
> >> + "Skipped 'A/D/G3/pi'\n",
> >> + "--- Merging r3 into 'A/D/G3':\n",
> >> + "C A/D/G3\n",
> >> + "Summary of conflicts:\n",
> >> + " Tree conflicts: 1\n",
> >> + " Skipped paths: 1\n"])
> >>
> >> os.chdir(saved_cwd)
> >>
> >>
> >> --------------------------------------------------------------------
> -
> >> To unsubscribe, e-mail: svn-unsubscribe_at_subversion.tigris.org
> >> For additional commands, e-mail: svn-help_at_subversion.tigris.org
> >
> >
>
> --
> Neels Hofmeyr -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23458696 mobile: +49 177 2345869 fax: +49 30 23458695
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelsreg: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr:
> DE163214194

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-19 17:26:30 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.