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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:16:24+00:00 2026-05-12T19:16:24+00:00

I am a beginner in SVN.I have the SVN directory structure like this: |-trunk

  • 0

I am a beginner in SVN.I have the SVN directory structure like this:

|-trunk
  |-file1.php
  |-file2.php
|-branches
  |-branch_1
    |-file1.php
    |-file2.php
  |-branch_2
    |-file1.php
    |-file2.php

In the trunk I have the main version of my application. I have two branches for different clients which have the modifications only in some files. When I find some core bug I fix it in trunk. For example I modified the file1.php in trunk directory. I want to apply changes to the files named file1.php in all the branches.

I am little confused. In the Version Control with Subversion I have found the following explanation.

Subversion’s repository has a special
design. When you copy a directory, you
don’t need to worry about the
repository growing huge—Subversion
doesn’t actually duplicate any data.
Instead, it creates a new directory
entry that points to an existing tree.

So I though that when I commit a change in the file trunk\file1.php it will be automaticaly aplied to the other file1.php files as I didn’t make any changes to that files in branches directory.

How can I apply changes from trunk directory to all the branches? I was trying to use svn merge like this:

svn merge -r 31:32 http://mysvnserver.com/project/branches/branch_1

but I didn’t do any changes (svn diff -r 31:32 returns all the changes I 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-12T19:16:24+00:00Added an answer on May 12, 2026 at 7:16 pm

    If you want to apply a change from trunk to branch_1, the merge command needs to specify where to get the diff from, and then specify a target to apply the merge to:

    cd branch_1
    svn merge -r 31:32 http://mysvnserver.com/project/trunk .
    svn diff   # confirm that the only diff is your change to file1.php
    svn commit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a beginner in jQuery area and I have simple question like this :
This seems like a pretty beginner question; however, I have no idea what the
(R beginner here...) I have a dataset like: > head(q) Date Time System User
Android beginner, Can anybody guide me on this ? I do have the distance,
Total beginner with PHP: I have an form based on table data that the
I'm still beginner in PHP. I have a small problem, I would to multiply
Beginner Android and Java developer here. I have this snippet of code inside a
I'm a beginner in svn. I know basic things like creating a repository, checking,
PHP beginner here. Apologies if this has been posted in another form - I've
beginner PHP programmer here trying to use the mailchimp API... I keep getting 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.