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

RE: Baselining selective files/folders of Parent directory in SVN

From: Ramachandran, Vishwanath(IE10) <Vishwanath.Ramachandran_at_Honeywell.com>
Date: Tue, 7 Jul 2009 15:20:16 +0530

Hi Johan

Thanks for the reply, will try the same as suggested

Regards
R.R.Vishwanath
Desk: +91 80 26588360 Extn: 44211
Cell: +91 9632243577
-----Original Message-----
From: Johan Corveleyn [mailto:johan.corveleyn_at_uz.kuleuven.ac.be]
Sent: Tuesday, July 07, 2009 2:53 PM
To: Ramachandran, Vishwanath(IE10); users_at_subversion.tigris.org
Subject: RE: Baselining selective files/folders of Parent directory in
SVN

> -----Oorspronkelijk bericht-----
> Van: Ramachandran, Vishwanath(IE10)
>
> Hi there
>
> Consider a directory structure where there is a Parent folder, and
> three subfolders Sub_ A, Sub_B and Sub_C. Consider that Sub_A has
> files File_A_1 and File_A_2; Subfolder Sub_B has files File_B_1 and
> File_B_2; Subfolder Sub_C has files File_C_1 and File_C_2. I would
> like to create a baseline (tag) consisting of Folders Sub_A and
> Sub_B wherein only File_A_1 and File_B_1 are included in the
> baseline. Please note that Sub_C and its contents should not be
> included in the baseline. Also, File_A_2 and File_B_2 should not be
> included in the baseline. I request you to share information on
> creating such a baseline (tag) in SVN. I understand that all files
> and folders under Parent folder can be created by a right-click,
> and by selecting 'branch/tag' in TortoiseSVN.
>
>
> But I would like to know how selective files/folders in the Parent
> directory can be baselined.
>
>
>
> Could you please suggest your thoughts on this?

Hm, that's not easy. The way tags work currently in Subversion
(implemented as cheap copies) is kind of limited, and does not really
facilitate that use case. I hope one day Subversion will have a more
advanced tagging mechanism, but in the meantime ...

One way you could do this would be by creating the tag from a sparse
working copy. I.e. a working copy in which you only put the things that
you want to tag (by using the sparse directories features, --depth
options etc.). Then tag that working copy.

If you want to learn more about sparse directories, you should first
read the relevant chapter from the book:
http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html

Here are some hints on how to create such a sparse working copy with
TortoiseSVN:
- Start with a checkout with Checkout Depth = "Only this item" of your
Parent folder
- Then go to that folder, Right-click, and open TortoiseSVN's Repo
browser
- In Repo browser, right-click Sub_A and select "Update item to
revision"
- Select Update Depth = "Only this item", OK
- In Repo browser, right-click File_A_1 and select "Update item to
revision"
- Select Update Depth = "Only this item", OK
- Repeat for Sub_B and File_B_1

After this you should have a sparse working copy only containing the
wanted items. If you update the root of that working copy, it will only
update what's in there (i.e. it remembers the depth settings you
selected). If you branch/tag that one, I think only those items are
copied to the tag.

HTH,
Johan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2368708

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-07 11:52:48 CEST

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.