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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:59:36+00:00 2026-05-16T09:59:36+00:00

I have svn repository with project on it. Right now there is good version

  • 0

I have svn repository with project on it. Right now there is “good” version and on my computer there is “bad” version but I want to have both on repository.

I dont want to make any tags. I can rememebr that I once did somethinkg like that:

Commited “bad” version, then checked out old but “good” version and commited it so that “good” version is on svn and “bad” version as well as older revision.

But now when I do that and try to commit “good” version there is a message that there are no changes.

Changes which were made are: adding some code to files never deleting any code.

What is the best way to do sth like that ?

  • 1 1 Answer
  • 2 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-16T09:59:37+00:00Added an answer on May 16, 2026 at 9:59 am

    Merge the old (good) version into last (bad) one.

    $ svn help merge
    merge: Apply the differences between two sources to a working copy path.
    usage:
    1. merge sourceURL1[@N] sourceURL2[@M] [WCPATH]
    2. merge sourceWCPATH1@N sourceWCPATH2@M [WCPATH]
    3. merge [-c M[,N…] | -r N:M …] SOURCE[@REV] [WCPATH]

    1. In the first form, the source URLs are specified at revisions
      N and M. These are the two sources to be compared. The revisions
      default to HEAD if omitted.

    2. In the second form, the URLs corresponding to the source working
      copy paths define the sources to be compared. The revisions must
      be specified.

    3. In the third form, SOURCE can be either a URL or a working copy
      path (in which case its corresponding URL is used). SOURCE (in
      revision REV) is compared as it existed between revisions N and M
      for each revision range provided. If REV is not specified, HEAD
      is assumed. ‘-c M’ is equivalent to ‘-r :M’, and ‘-c -M’
      does the reverse: ‘-r M:’. If no revision ranges are
      specified, the default range of 0:REV is used. Multiple ‘-c’
      and/or ‘-r’ options may be specified, and mixing of forward
      and reverse ranges is allowed.

    In your case you could use form 3:

    svn merge -r HEAD:PREV .
    

    merging previous version into head version of the working copy

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

Sidebar

Related Questions

I have a SVN repository and a checked out version both on a Machine
I have checked out files from my svn repository to a local project folder.
On my workstation I have SVN repository. I use it on both workstation and
I have imported our SVN repository into Mercurial and now we have entries for
I often have the case that I want to work on a SVN repository
I have one project that I checked out from one SVN repository location and
I have an SVN repository containing multiple top-level folders, one per project. Inside each
I have followed the documentation to setup the SVN repository for existing project. I
I have an Svn repository at http://svn.domain.com/project that is structured as follows: trunk/ build_file_1.xml
In our project we have to commit all changes to the clients svn repository.

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.