On 2004 Aug 22, at 21:14, Dirk Reckmann wrote:
> Am Sonntag, 22. August 2004 20:56 schrieben Sie:
>> On 2004 Aug 22, at 20:49, Dirk Reckmann wrote:
>>> Hi Alex!
>>
>> Hi! Any reason to keep the mailing list out of this exchange...?
>> Just
>> in case, I'm not cc'ing the mlist, just as you didn't.
>
> Sorry, my mistake. Should be fixed by this mail...
Yep, fixed just fine, thanks.
>> Yes, except that my script uses Python's shutils module, which no
>> doubt
>> does the system-calls equivalent of cp (rather than mv) over and over.
...
>> too: rm -rf any directory named .svn before the svn add of the newly
>> prepared tree. Does that look sensible to you...?
>
> I would guess, that this might work equally well. But i would try to
> use "svn
> mv" or "svn cp" in the first place. Even if shutils does not know
> about svn,
> I suppose that it is possible to run arbitrary command lines from
> python ;-)
Yes, but shutil gives me more control than any shell-level cp / mv and
the like (on date/times, permissions, ownerships, ...) I've ever met in
my life, and svn gives me less;-). Just the fact that 'svn co' sets
the date and time of all files I'm checking out to the instant I run
svn co (rather than any _meaningful_ dates and times of files'
creation/update) is already requiring me to up my consumption of maalox
significantly -- I'd _much_ rather NOT have to try and get wholesale
prices on such antacid by fighting with similar problems on everyday
tasks such as creation of chapters' directory-trees (when shutil lets
me control every such detail so easily...). So I think I'll try
preparing the tree just as I want it (with shutil) then removing .svn
directories and see if that works.
> And just in case: there are python bindings for svn.
>
> But I have no experiences with these bindings or with python at all...
Me neither (with the bindings -- with Python, I'm somewhat
experienced;-)... and I'm supposed to be writing books, rather than
doing system administration and programming, so I'm looking for quick &
dirty solutions -- even though the svn bindings may well be the right
production-level approach, I'm still resolutely looking for
shortcuts!-)
BTW, if anybody who _is_ experienced with svn's Python bindings wants
to post a recipe to ActiveState's Python Cookbook, www.activestate.com,
there's still a time window of a week or two for such recipes to be
considered for publication in the 2nd edition of O'Reilly's printed
version of said Cookbook (which I'm co-editing, as I did the first).
I'd _love_ to get a mention of svn into the book -- it's a tool I'm
finding quite preferable to CVS, which I used for the first edition,
even though it's not yet what I'd consider "perfect", as this thread
attests;-). Contributors to the printed Cookbook get a complimentary
copy (royalties that would normally go to contributors go instead to
the non-profit Python Software Foundation -- splitting such royalties
among hundreds of book contributors wouldn't leave many bucks per
person anyway!-) -- as well of course as their name in print and
subsequent fame&fortune!-)...
Thanks,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Aug 22 22:58:23 2004