Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 964357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:48:51+00:00 2026-05-16T01:48:51+00:00

i’m new to this kind of things. Kinda the first post ever regarding programming,

  • 0

i’m new to this kind of things. Kinda the first post ever regarding programming, since till now i managed to google everything that i needed. Thanks for your patience:) .

About my problem/goal:
On our project we will have to have some kind of documentation management control. We will have around 160 .docx files (all files are already known), for version control we will use SVN. Those files will be saved in different folders (further on i will make repository structure), folders will have the function of a phase we are currently on in our project (we will have around 12 folders). When a phase is done, tag aka. official release will be made.
Every file will have it’s place in MS Excel WorkSheet Column with data like: Phase, Name, Revision, Tag, Hyperlink ..

What i have to do is:
Macro that will search for the file on repository, if found read it’s revision,tag (latest) .. write it in excel sheet and also make a hyperlink to that file in another column.

Repository structure:

  • trunk
    • System_Development
      • System_Requirements_Specifications.docx
      • System_Architecture_Description.docx
      • System_Safety_Plan.docx
      • …
    • Software Planing
      • Software_Quality_Assurance_Plan.docx
      • Software_Configuration_Management_Plan.docx
      • …
    • …
  • branches (probably won’t get used, not sure yet)
  • tags
    • 1
      • System_Development
        • System_Requirements_Specifications.docx
        • System_Architecture_Description.docx
        • System_Safety_Plan.docx
        • …
    • 2
      • System_Development
        • System_Requirements_Specifications.docx
        • System_Architecture_Description.docx
        • System_Safety_Plan.docx
        • …
      • Software Planing
        • Software_Quality_Assurance_Plan.docx
        • Software_Configuration_Management_Plan.docx
        • …

I already made a macro that does the exact thing, but the problem is it’s very slow. How and why?

I was using ShellAndWait("cmd.exe /c svn list --verbose http:\\localhost\trunk > text.txt"), parse that text file to get folders in trunk, then checked which files are in those folders (with another ShellAndWait for each folder), if they were found get revision number and so on ..

As you see in the end, in my code svn command was executed 13 times so file in repository was found. With svn list –verbose i also got revision number. For svn command to execute it lasts around 0.15-0.20 of a second, so my revision number gathering lasts around 2 seconds. Which is not a problem.

Getting tag is a problem, as i have folder in folder, so in the end we could have around 40 or even more svn executes, which would make my tag function very slow.

I have no clue how to access repository in any other way then with svn.exe. I am thinking about accessing repository remotely and querying database or what ever, still researching that part.

Hope you understand my problem, for any more informations i am avail whole day! Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:48:52+00:00Added an answer on May 16, 2026 at 1:48 am

    svn list has an option -R or –recursive to include all subfolders. So, organizing your folder structure in a way that all required folders are subfolders of a main folder would reduce the number of calls needed.
    Alternatively, you can use the –depth option to control the depth of subfolders to descend.

    Extract from svn help list output:

      -R [--recursive]         : descend recursively, same as --depth=infinity
      --depth ARG              : limit operation by depth ARG ('empty', 'files',
                                'immediates', or 'infinity')
    

    I. e. organize you project in a way that the trunk and branches are relatively high in the folder structure, and the different phases are below that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.