[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: Paul Koning <Paul_Koning_at_dell.com>
Date: Thu, 19 Mar 2009 11:59:06 -0400

>>>>> "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].
Received on 2009-03-19 17:00: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.