[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to get all versions of a file? (incl. branches)

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Sun, 8 Jan 2012 09:43:38 +0100

On Sun, Jan 8, 2012 at 9:31 AM, Karl Krach <mailinglists_at_bluespirit.la> wrote:
> 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

You'd have to examine / parse the output of 'svn log -r0:HEAD -v
^/branches', to see all the 'Additions' (all lines with an 'A' as
first character).

> 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.

Unfortunately, you can't, except by examining the output of 'svn log
-v' again. In SVN's current implementation, no record is kept of
"copyto" information.

-- 
Johan
Received on 2012-01-08 09:45:01 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.