Announcement

Collapse
No announcement yet.

subversion command

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • subversion command

    Hi,

    Is there a subversion command that will cleanup the previous workspace before checking out the new workspace ?

  • #2
    Nothing specific, all you should need to do is delete the old working copy folder if you don't need it any more. If you've tried that and you're getting errors for some reason please reply back with details and we'll see what we can do.

    Comment


    • #3
      Thanks. That's what I was thinking. Are there any plans to add that as an option to the current command line ? What we want is an option to basically delete the current working copy and overwrite it with all the versions in the repository. For example, if my last workspace has a file that was deleted in the repo, I want that file deleted in my workspace the next time, I bring down the repo.

      Comment


      • #4
        In that case you'd need to remove the file from the working copy (using the subversion delete command, either from command line or whichever frontend tool you're using) and then commit it to the repo before you delete the working copy - that way you'll get another revision with that file removed. Once that's done you can safely delete the working copy folder.

        That way, next time you check out a fresh working copy from the latest (head) revision of the repository the file won't be there, but you still have the option to check out previous revisions if it turns out you needed the file after all
        Last edited by orbrey; 03-14-2014, 08:56 AM.

        Comment


        • #5
          I guess I always have to remove the old workspace before getting a new checkout or export.

          I have a new question. How can I put an output of any svn command to a log file in windows ?

          Comment


          • #6
            Originally posted by hmagnanao View Post
            I guess I always have to remove the old workspace before getting a new checkout or export.
            Not necessarily, you could always check out to a new folder with a different name if you needed to. Just an option though.

            Originally posted by hmagnanao View Post
            I have a new question. How can I put an output of any svn command to a log file in windows ?
            I believe if you use the > option to send the output of the command to a file that will work? e.g:
            svn update > C:\Users\Username\My Documents\SVNUpdateOutput.txt 2>&1

            The bit on the end makes sure the error outputs also end up in the text file.

            If you wanted to capture all the output in a single file, use two greater than symbols and the same file name each time:
            svn update >> C:\Users\Username\My Documents\SVNUpdateOutput.txt 2>&1

            That appends the output to the end of the file.

            Hope that helps

            Comment


            • #7
              Thanks for your responses.

              Comment

              Working...
              X