Subversion help (SVN)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Ross
    New Member
    • Jan 2007
    • 119

    Subversion help (SVN)

    I have no idea where to put this so sorry.

    I am trying to write a batch file for SVN so I can update remote instances of a website eaily.
    But each Instance needs a different webconfig.
    How can I write an update batch file that does not update the one file but everything else?
    Anyone know or know where I can find out?
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    If you have multiple files in a directory and only a few are under subversion control, anytime you do an svn update command it will only update those files that are under subversion control.

    So, I'm not sure what you mean when you say "write an update batch file that does not update the one file but everything else" if the "everything else" is controlled by subversion then "everything else" will be updated.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      Remove the webconfig file from the repository. When you do an update or checkout into a directory which has it, it will remain unchanged.

      Originally posted by Bob Ross
      I have no idea where to put this so sorry.

      I am trying to write a batch file for SVN so I can update remote instances of a website eaily.
      But each Instance needs a different webconfig.
      How can I write an update batch file that does not update the one file but everything else?
      Anyone know or know where I can find out?

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        You could also have your batch script copy the webconfig outside of the directory, run the update, then restore the file.

        Comment

        Working...