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

Re: [PATCH] Issue #2419: 'svn rm' of schedule add leaves working props file

From: Madan U Sreenivasan <madan_at_collab.net>
Date: 2005-11-04 01:57:45 CET

On Fri, 2005-11-04 at 05:54, David James wrote:
> On 11/3/05, Branko Čibej <brane@xbc.nu> wrote:
> > Madan U Sreenivasan wrote:
> > > On Fri, 2005-11-04 at 02:25, Daniel Rall wrote:
> > >
> > >> On Fri, 04 Nov 2005, Madan S. wrote:
> > >>
> > >>
> > >>> On Thu, 2005-11-03 at 23:58, Garrett Rooney wrote:
> > >>>
> > >>>> On 11/2/05, Madan U Sreenivasan <madan@collab.net> wrote:
> > >>>>
> > >>>>> Hi,
> > >>>>> Pl. find attached a patch for issue #2419.
> > >>>>>
> > >>>> The fix seems reasonable to me, but the test should be written in pure
> > >>>> python, without shelling out to the "touch" command. It's not like
> > >>>> it's a lot of python code, and it makes things more portable (does
> > >>>> 'touch' even exist on windows?).
> > >>>>
> > >>> You are right... will change that...
> > >>>
> > >> The equivalent Python I usually use is to open a file for write, then
> > >> close it (or let Python close it for you).
> > >>
> > > I was thinking of os.mknod ... what do you think?
> > >
> > I think you need to read the Python docs more closely.
> >
> > For one thing, mknod is again unix-specific. For another, it requires
> > Python 2.3.
>
> Madan, here's how to create an empty file using Python:
> open("file.txt","w").close()
>
> Hope this helps!
Sure, it does, David. Thank you.
I was thinking of using main.file_append(), but your suggestion is
crispier and more apt for creating empty files. I will use this...

Thanks,
Madan.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 4 01:49:14 2005

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.