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 462521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:04:58+00:00 2026-05-12T23:04:58+00:00

When I create a branch off a revision of TRUNK, my resulting branch doesn’t

  • 0

When I create a branch off a revision of TRUNK, my resulting branch doesn’t have any mergeinfo set so as far as I can tell it’s impossible to figure out what revision the branch came from later.

I have some scripts that are supposed to automatically generate diffs against TRUNK later, but I don’t have the revision numbers I need. If I merge with main again I’ll get merginfo set so the scripts can pull it out.

Also I can do

svn merge --record-only svn+ssh://{url}/main@{revision}

This will set the revision. But it’s slow and requires checking out the source and committing the change back.

I could also change the scripts to generate a diff just from the changes in the branch, unless there is mergeinfo, then fallback to diffing against trunk, but the special cases
are making this awfully complicated.

Is there an easier way ?

Clarification:
After doing more subversion research, I read this. What I need is a programmatic way to access the IMPLICIT mergeinfo because when you create a branch via copy, you don’t get the explicit mergeinfo property.

The implicit property is effectively /TRUNK:1-BRANCHPOINT indicating the branch has all revisions up to BRANCHPOINT included. What I’m trying to find is that BRANCHPOINT after the branch has been made.

  • 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-12T23:04:58+00:00Added an answer on May 12, 2026 at 11:04 pm

    From the question, I’m not entire sure exactly which diffs you’re trying to generate.
    However, you can always get the revision that a branch came from by using:

    svn log -v --stop-on-copy -r 1:HEAD -l 1 svn+ssh://{url}/branch
    

    This orders the revisions oldest first, doesn’t go back beyond the copy operation for that branch, and limits it to the 1 revision (the copy operation itself).

    However, svn mergeinfo takes account of branch operations and considers them already merged (I think there was a time when it didn’t do this, which was annoying, but it’s been fixed a while), so using mergeinfo to see what nees to be merged in either direction will show you something sensible.

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

Sidebar

Related Questions

I want to create a branch off a revision that doesn't exist. What I
Let us say I have a trunk and I create a branch (branch A)
If I create a branch in SVN off trunk rev 10 then realized that
SVN 1.6.12 question - Suppose I create a branch off of trunk. Then in
If we have some branch, B1, is there a way to create branch B2
I've read this book section about git branches. I have create a branch called
I have a file with one line in it. I create a branch and
I am trying to create a new branch using the API, and have used
I have a repository where in revision 1 the folders trunk, branches and tags
I have two branches: master and dev I want to create a "feature branch"

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.