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

Re: svn commit: r21797 - in trunk: . subversion/tests/cmdline subversion/tests/cmdline/svntest

From: David Glasser <glasser_at_mit.edu>
Date: 2006-10-07 21:49:31 CEST

On 10/7/06, Kamesh Jayachandran <kamesh@collab.net> wrote:
> I realized the same after making a comment :).
> Now the problem is your svneditor.py seems to edit the file within a
> microsecond and hence the temporary file's mtime same. This makes the
> svn client binary to think that nothing changed, and hence the testcase
> fails. putting a time.sleep(1) before 'foo' to 'bar' conversion makes
> the testcases pass.

Yes, that is the issue. The question is, is Subversion's behavior
good or not. If the command is being used by a human, it's fine; on
the other hand, once I get this test working I'm going to implement
"svn propedit URL", and if we support "svn propedit URL" and not "svn
propset URL" I can imagine folks using mock editors in scripts.

(One possibility would be to implement "svn propset URL
--i-have-seen-revision 1234", with a less stupid name, so that scripts
could do something like "svn info" to get the current rev, "svn pg URL
-r1234", ensure that it's what they mean to change, and "svn ps URL
--i-have-seen-revision 1234". I'm not sure that this makes sense
though.)

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 7 21:49:46 2006

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