Re: Cannot get log of deleted branch by URL
On 01/07/2012 11:26 PM, Ryan Schmidt wrote: you must use a peg revision to specify a revision in which it still existed Ryan, this works for the command line, thx! $ svn log -r13 \ svn://localhost/testproject/branches/work_route/hugo.txt@13 r13 | charly | 2012-01-05 10:18:37 +0100 (Thu, 05 Jan 2012) | 3 lines +IMPROVED: * Adding some text for the trunk - but not for the release The funny thing is, I hit the problem first in the code - and posted the cmd line example for clearer understanding. Here is the code, which should do the same - where is my fault apr_array_header_t* targets = apr_array_make( pool, 1, sizeof(const char*) ); APR_ARRAY_PUSH (targets, const char*) = svn://localhost/testproject/branches/work_route/hugo.txt; svn_opt_revision_t peg_revision; peg_revision.kind = svn_opt_revision_number; peg_revision.value.number = 13; [...] pError = svn_client_log5( targets, peg_revision, [...] ); Complete code at http://paste.bluespirit.la/index.php/view/7691156 Best regards, Charly
How to get all versions of a file? (incl. branches)
Hello, I ve created a feature branch with svn copy and committed some content. Afterwards I merge --reintegrated this feature branch to the trunk and deleted it. In the future, when I do a svn list ^/branches this branch is one - of course, since it's deleted. 1) How can I list all files, which ever were created in a folder? $ svn list -r0:HEAD ^/branches svn: Revision range is not allowed 2a) If I examine one file in the trunk - how can I get the complete history (incl. all branches, also the deleted ones)? 2b) Is there a way to figure out the link from TRUNK to BRANCH? When I create a branch (with svn copy) there is a link from the copy (branch) to the source (target) by copyfrom_path and copyfrom_rev. But if I examine the trunk, there is only a link when the branch is merged back once - if there was no merge, there is no reference to the branch. The solution does not need a command line, it can also be done in code (http://subversion.apache.org/docs/api/1.6/group__Log.html#ga6907dbe5f0117b0beee65c41fa6d0837). Thanks, Charly
Re: How to get all versions of a file? (incl. branches)
On 01/08/2012 09:43 AM, Johan Corveleyn wrote: In SVN's current implementation, no record is kept of copyto information. Thanks Johan. But since there is only a recommendation to create your branches at ^/branches you could never list all branches (except with browsing the full log, which is very expensive - especially for big projects). I'm just working on a small app to list the revision graph for a selected folder. If the selected folder is in the trunk, I have no (clean) chance to find it's branches. I can guess, that the branches are located in echo URL | sed 's/trunk.*/branches/ and check relative path there - but what if the folder was deleted/renamed in this branch? I have to find the copy/branch revision and receive their log history. Each access of the SVN repository of googlecode takes about 2-3 seconds, this means that many requests take some time :/ What happens if some stupid guy names the trunk as main line or translates the branch-folder into German: zweige :) Charly
Cannot get log of deleted branch by URL
Hello, I ve created a feature branch with svn copy and committed some content. Afterwards I merge --reintegrated this feature branch to the trunk and deleted it. After the branch was deleted, I wasn't able to get the log of this feature branch by URL. I had to check-out the repository at a revision, when this feature branch was alive and had to perform the svn log with a relative PATH. Is this intended?? Best Regards, Charly -- error-message = File not found: revision 17, path '/branches/work_route/hugo.txt', error-file = /build/buildd/subversion-1.6.12dfsg/subversion/libsvn_fs_fs/tree.c, error-line = 2798 // // For Info // $ cd ~/tmp/testproject_work_route $ svn info hugo.txt Path: hugo.txt Name: hugo.txt URL: svn://localhost/testproject/branches/work_route/hugo.txt Repository Root: svn://localhost/testproject Repository UUID: 7f4233b1-b113-4339-bb6d-b1a9da9de539 Revision: 15 Node Kind: file Schedule: normal Last Changed Author: charly Last Changed Rev: 13 Last Changed Date: 2012-01-05 10:18:37 +0100 (Thu, 05 Jan 2012) Text Last Updated: 2012-01-05 18:06:02 +0100 (Thu, 05 Jan 2012) Checksum: 2dfea433eea7aa03a98ba2025c6ffd91 // // Working with PATH // $ svn log -r13 hugo.txt r13 | charly | 2012-01-05 10:18:37 +0100 (Thu, 05 Jan 2012) | 3 lines +IMPROVED: * Adding some text for the trunk - but not for the release // // Not working with URL // $ svn log -r13 svn://localhost/testproject/branches/work_route/hugo.txt svn: File not found: revision 17, path '/branches/work_route/hugo.txt' // // Doing the same with a directory, which is not deleted yet: // $ cd ~/tmp/testproject_trunk/ $ svn log -r14 svn://localhost/testproject/branches/release-1.x/hugo.txt r14 | charly | 2012-01-05 10:23:16 +0100 (Thu, 05 Jan 2012) | 3 lines +MERGED: * merging from route branch $ svn log -r13 -v svn://localhost/testproject/branches/ r13 | charly | 2012-01-05 10:18:37 +0100 (Thu, 05 Jan 2012) | 3 lines Changed paths: M /branches/work_route/hugo.txt +IMPROVED: * Adding some text for the trunk - but not for the release
Re: linux subversion checkout hangs since server was virtualized
Jörg Buchberger lists at joerg-buchberger.de writes: First of all, thanks for the quick response. Hmm, perhaps I should mention that the server is windoze (2003) and that this is not a normal apache setup but visualsvnserver (2.1.5) - however, I tried both - ordinary apache setup and visualsvnserver - either way it worked out fine on physical host, yet not in virtual environment. I'm afraid, I won't be able to compile myself as suggested by the FAQ entry. Regards, Joerg Hello Joerg, if it's working on Windows but not on Linux: did you compare the network traffic with wireshark? Maybe you make a checkout on both OSs without SSL, so you get all messages. Further more you can also compare the old host with the virtualized host... Best regards, Charly