dsoprea / PySvn

Lightweight Subversion library for Python.
GNU General Public License v2.0
217 stars 144 forks source link

list_recursive error with E200009 #88

Open stonecharioteer opened 7 years ago

stonecharioteer commented 7 years ago

I've been trying to list all the subdirectories in a repository, but I hit a wall where it says some targets don't exist. This might be because some subdirectories were removed/deleted from the repository. However, I am unable to skip those directories via a loop because of how the generator is designed. Is there some alternate way of doing this?

dsoprea commented 7 years ago

Please provide an example. The method merely asks for a list (a block of text) and yields each line.

Dustin

On Apr 20, 2017 01:39, "Vinay Keerthi" notifications@github.com wrote:

I've been trying to list all the subdirectories in a repository, but I hit a wall where it says some targets don't exist. This might be because some subdirectories were removed/deleted from the repository. However, I am unable to skip those directories via a loop because of how the generator is designed. Is there some alternate way of doing this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dsoprea/PySvn/issues/88, or mute the thread https://github.com/notifications/unsubscribe-auth/AArrape_tiNM2ObTjMsq3pO5OzSBslERks5rxu-EgaJpZM4NCkDd .

jsswirus commented 7 years ago

Hi, I think I had similar problem. Cause: If you're on windows and using RemoteClient svn will try to add '\\' as a directories connector (instead of '/'). It will work correctly for LocalClient but cause problems when using URL. It creates URLs like: http://192.168.0.89/svn/projects/UJ/trunk/res%5Cicons instead of just http://192.168.0.89/svn/projects/UJ/trunk/res/icons

and this results with error: svn: E200009: Could not list all targets because some targets don't exist

I've created simple patch (attaching it), but I'm not sure if this 'joining paths' function shouldn't be moved up to specific client type. list_recursive_error_with_E200009__88.patch.txt

alexanderlarin commented 4 years ago

I have the same problem when remote client will tries to add '\' as a join connector (instead of '/')