svn log command with--depth option

satheesh
satheesh
Hi,    I need to get the log for specific directory in SVN database non-recursively.     svn.exe log HTTP://10.0.3.2:8080/svn/New/Projects --depth "empty"  It shows,   svn: E205000: Try 'svn help' for more info   svn: E205000: 'depth' option requires 'diff' option    But i need to get the logs for /New/Projects only not it child's    Thanks in advance,

Last updated

squeekjjy
squeekjjy
So what you are trying to do is get a log of a certain part of the repo? but not the children folder's underneath?
satheesh
satheesh
Yes, you are correct...
andyl
andyl
I don't think you can. Because revisions are tracked globally, a change to any item "bubbles up" to be reflected as a change to its parent, all the way to the root.
johna
johna
But the time taken to fetch the logs for a root folder will be very high since its a recursive call.. And this will be a very big performance overhead. Can you suggest any ways to get rid of the performance overhead and fetch the logs?  
andyl;127084I don't think you can. Because revisions are tracked globally, a change to any item "bubbles up" to be reflected as a change to its parent, all the way to the root.
andyl
andyl
johna;127102But the time taken to fetch the logs for a root folder will be very high since its a recursive call.[/quote]Have you tested this and know it to be true? I'm not saying that you have to get the changes from root, I'm saying that any change to a versioned item will also be a change to its parent.    [QUOTE=johna;127102]Can you suggest any ways to get rid of the performance overhead and fetch the logs?
Without writing your own custom client (and maybe server), I see no way to non-recursively get logs. And doing so would be very dangerous anyway, as you would be purposely excluding data from your retrieved logs. It may even be slower, because you have to inspect every log for every path to see if you want it included or not.    What are you trying to do with your logs that is causing this to be a major problem in the first place? Or are you inventing scenarios that can be handled in a better way?

1-6 of 6

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.