Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. SVN Noob

SVN Noob

Scheduled Pinned Locked Moved The Lounge
collaborationquestionannouncement
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kyudos
    wrote on last edited by
    #1

    Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

    D P S A K 5 Replies Last reply
    0
    • K Kyudos

      Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Not sure if there is a built in mechanism but it is fairly easy to write a pre-commit hook that does it.

      My CP workspace: Incredibly trivial and probably useless code samples[^]

      1 Reply Last reply
      0
      • K Kyudos

        Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        That's quite nearly a programming question. :suss: Is H:\RemoteCurrentCopy also a working copy? If so, you might be able to do something to automate the refresh. If not, maybe a BAT file? :-D

        You'll never get very far if all you do is follow instructions.

        1 Reply Last reply
        0
        • K Kyudos

          Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

          S Offline
          S Offline
          Suvabrata Roy 0
          wrote on last edited by
          #4

          Yes there is something call commit hook. Details : http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.post-commit.html[^] http://wordaligned.org/articles/a-subversion-pre-commit-hook[^] Now you can write your own code to customize commit :-D :) :) ;)

          Life is all about share and care... public class Life : ICareable,IShareable { // implements yours... }

          1 Reply Last reply
          0
          • K Kyudos

            Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #5

            Not sure about SVN, but with Git I think you can have multiple remote URL's that you push to (a push is essentially a commit) all at once.

            Thou mewling ill-breeding pignut!

            1 Reply Last reply
            0
            • K Kyudos

              Can you get SVN to maintain a 'remote current version' when you commit changes? (i.e., extra to the repository?) e.g., My repository is on X:\, and when I commit changes there, I want a copy of the file to be made to H:\RemoteCurrentCopy\.

              K Offline
              K Offline
              Kyudos
              wrote on last edited by
              #6

              Thanks all - I think the post-commit hook will do the trick.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups