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

RE: How to export subdirectory with directory revision number?

From: kmudrovcic <kmudrovcic_at_gmail.com>
Date: Fri, 20 Mar 2009 01:38:09 -0700 (PDT)

I understand what you say but when i try to export subdirectory with revision
number representing tagged version of the directory it gives me an error
saying that it cannot eyport subdirectory with that revision because that
revision doesn't exist.

You can try my example if you tag some directory revision where subdirectory
isn't changed, and than try to export subdirectory with that revision
number.

I'm doing all that in a script using svn export function.

Paul Koning-4 wrote:
>
>>>>>> "kmudrovcic" == kmudrovcic <kmudrovcic_at_gmail.com> writes:
>
> kmudrovcic> Hmmm, subdirectory existed during directory checkout for
> kmudrovcic> sure (revision 100 for e.g.), but in subdirectory log you
> kmudrovcic> cannot see that revision (100).
>
> That's all documented. If you ask, in a subdirectory, for the log of
> rev 100, it shows you everything that changed in that subtree by the
> change that made rev 100. If that change didn't touch the subtree,
> you get nothing.
>
> If you want to know the latest change that touched the subtree, do
> svn log --limit 1 -r 100:1
>
> kmudrovcic> So i'm now interested in svn algorithm, how does svn know
> kmudrovcic> what revision of subdirectory to export when you export a
> kmudrovcic> driectory (e.g. evision 100). Is it written somewhere or
> kmudrovcic> does svn look for last revision of subdirectory that is
> kmudrovcic> before directory revision.
>
> Yes, it's in the book. I don't have pointers at hand. Some more
> reading will help.
>
> The basic scheme: svn maintains a file system with an extra dimension
> (the rev number). Every change to any part of the file system is a
> new rev. In other words, each rev corresponds to another version of
> the entire file system -- though most of it didn't change between the
> previous rev and that one.
>
> If you check out, or update to, or export, a rev, that means "give me
> the contents of the svn file system as it was in the rev I asked for".
>
> So, in your case, "svn export -r 100 subdir" means "give me the
> subtree rooted at "subdir" as it existed in rev 100". So you'll see
> the effect of all the changes from 100 back to 1, whichever is the
> most recent for any particular file or directory.
>
> paul
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1356172
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>
>

-- 
View this message in context: http://www.nabble.com/How-to-export-subdirectory-with-directory-revision-number--tp22558938p22607155.html
Sent from the Subversion Users mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1362880
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-20 09:39:05 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.