You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Karl Krach <ma...@blueSpirit.la> on 2012/01/07 21:52:35 UTC
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: Cannot get log of deleted branch by URL
Posted by Karl Krach <ma...@blueSpirit.la>.
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
Re: Cannot get log of deleted branch by URL
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 7, 2012, at 14:52, Karl Krach wrote:
> 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??
Yes. If you want to access a deleted item, you must use a peg revision to specify a revision in which it still existed.
http://svnbook.red-bean.com/en/1.7/svn.advanced.pegrevs.html