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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:08:42+00:00 2026-05-11T06:08:42+00:00

I have a directory under subversion control. I created a branch out of it

  • 0

I have a directory under subversion control. I created a branch out of it just to test merging stuff. I took a file, modified line X in the trunk as ‘abc’ and modified the same line X as ‘def’ in its branch.

Then, from the branch working dir I did:

svn merge branchURL trunkURL . 

It updated the file with the content as ‘abc’ at that line number, i.e. it did not give me a conflict at the same line number as svn update would have given me if I had done it in the same working dir and someone had committed the ‘def’ in the repository.

So does the svn merge just replace the content while merging and not bring any conflicts?

And if so the very reason of branching out a proj dir out of main trunk would be useless when one can’t merge in a way so as to keep both the changes in trunk and branch.

  • 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. 2026-05-11T06:08:42+00:00Added an answer on May 11, 2026 at 6:08 am

    You do realize what

    svn merge branchUrl trunkUrl branchWorkingCopy 

    Actually does, yes?

    Here’s a translation:

    Figure out the set of changes necessary to make the contents of branchUrl identical to those of trunkUrl. Now perform those changes on the branchWorkingCopy.

    You won’t get any conflicts merging this way. When you check in your branchWorkingCopy, however, you will have made your branch identical to your trunk, which is almost certainly not what you want.

    If you just want to copy selected changes from trunk to branch, you’ll need to tell Subversion which changes you want to copy and use a different form of the merge command:

    svn merge -r100:103 trunkUrl branchWorkingCopy 

    Which means: Determine the set of changes necessary to get from r100 to r103 on trunk. Perform those changes on the working copy (of branch). Note that this ‘set of changes’ will not include the changes made by r100, as those are captured by the set of changes necessary to get from r99 to r100. Revision ranges in Subversion are half open.

    Also, consider reading the fine manual, if you haven’t yet.

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

Sidebar

Related Questions

Assume that you have a directory under subversion control, that contains some files and
I'm confused with file moving under python. Under windows commandline, if i have directory
I have a list containing about 1000 file names to search under a directory
I have a directory tree under SVN control, and I want to add and
I have an Xcode4 project which is under Subversion SCM. The initial directory structure
Let's say I have a directory under SVN control and I have a LOT
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}), As you can see, I have a directory called media under
I have many static images under a directory in my site structure, and I'm
I have a directory called c:\RemoteSrc . Under this there are 3 directories which
I have a virtual directory under my MVC website in IIS called Files. This

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.