Hi Martijn! 

On Tue, Feb 19, 2008 at 20:36 +0100, Martijn Faassen wrote:
> 
>    wc.join('map5').join('content').ensure()
>
> We then get the following error:
> 
> ...
> 
> Error: ExecutionFailed: 1  LC_ALL=C svn add 
> "/home/faassen/tmp/resynch/app2/data/map5/content"
> svn: '/home/faassen/tmp/resynch/app2/data/map5' is not a working copy
> svn: Can't open file 
> '/home/faassen/tmp/resynch/app2/data/map5/.svn/entries': No such file or 
> directory
> 
> It would be nicer for my purposes if 'ensure()' also ensured that all 
> directories above 'content' are added to SVN first (if indeed they 
> haven't been added yet).
> Would this be good behavior in general for py.path.svnwc, or is there a 
> good reason not to do this?

I can imagine that this can makes sense.  Might be a bit hairy
to implement, not sure.  In any case I'd rather like to see things 
in terms of tests.  

You might take py/path/svn/testing/test_wccommand.py's
test_ensure as a good starting point for expressing the
desired behaviour.  Feel free to implement it and submit a
patch or just commit to py/trunk if you are sure enough - 
i can review. 

best, 

holger

_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to