Advertisement

07.21.2008 at 03:12AM PDT, ID: 23581296
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Checking out selected files in a directory tree using Subversion

Asked by jaimehy in Subversion, Version Control

Tags:

Hi

My developer colleagues have an enormous and complex directory tree of development files checked into Subversion.

I need to edit files (called "POM.xml" files) containing metadata on the contents of the directory tree.  I have utterly no interest in any of the other files in the directory tree.

What I'd like to do is check out the whole directory tree but with only the files named "pom.xml".  (What I need to do is add meta-information on localization into each pom.xml file, if you're curious.)

To give a very simplified example, let's say the the following structure is checked in in Subversion (Directories in upper case, files in lower case):
ROOT
   TRUNK
      SUPERPROJECT1
         PROJECT1
            project1.cpp
            project1.h
            pom.xml
            BIN
               project1.dll
         PROJECT2
            project2.cpp
            project2.h
            pom.xml
            BIN
               project2.dll
         PROJECT3
            project3.cpp
            project3.h
            pom.xml
            BIN
               project3.dll
     PROJECT4
         project4.cpp
         project4.h
         pom.xml
         BIN
            project4.dll
     PROJECT5
         project5.cpp
         project5.h
         pom.xml
         BIN
            project5.dll
   VERSION1
      SUPERPROJECT1
         PROJECT1
            project1.cpp
            project1.h
            pom.xml
            BIN
               project1.dll
         PROJECT2
            project2.cpp
            project2.h
            pom.xml
            BIN
               project2.dll
         PROJECT3
            project3.cpp
            project3.h
            pom.xml
            BIN
               project3.dll
     PROJECT4
         project4.cpp
         project4.h
         pom.xml
         BIN
            project4.dll
   VERSION2
      SUPERPROJECT1
         PROJECT1
            project1.cpp
            project1.h
            pom.xml
            BIN
               project1.dll
         PROJECT2
            project2.cpp
            project2.h
            pom.xml
            BIN
               project2.dll
         PROJECT3
            project3.cpp
            project3.h
            pom.xml
            BIN
               project3.dll
     PROJECT4
         project4.cpp
         project4.h
         pom.xml
         BIN
            project4.dll

What I want to extract, edit and commit is something like the following (i.e. the full directory tree, but with only the pom.xml files at the relevant points.  For reasons of disk space, process security and workflow logic, I don't want to check out any other files):

ROOT
   TRUNK
      SUPERPROJECT1
         PROJECT1
            pom.xml
         PROJECT2
            pom.xml
         PROJECT3
            pom.xml
     PROJECT4
         pom.xml
     PROJECT5
         pom.xml
   VERSION1
      SUPERPROJECT1
         PROJECT1
            pom.xml
         PROJECT2
             pom.xml
          PROJECT3
             pom.xml
     PROJECT4
         pom.xml
   VERSION2
      SUPERPROJECT1
         PROJECT1
            pom.xml
         PROJECT2
            pom.xml
         PROJECT3
            pom.xml
     PROJECT4
         pom.xml


I can't seem to find a simple Subversion command that lets me do this.

If anyone can help me I'd be very grateful.   I'd like to avoid having to write a utility to do this job. ... if possible.Start Free Trial
[+][-]07.24.2008 at 05:38AM PDT, ID: 22078372

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Subversion, Version Control
Tags: Subversion
Sign Up Now!
Solution Provided By: _Nopik_
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.30.2008 at 12:52AM PDT, ID: 22118235

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.30.2008 at 01:35AM PDT, ID: 22118403

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628