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. Other Discussions
  3. IT & Infrastructure
  4. Reverse Source Control

Reverse Source Control

Scheduled Pinned Locked Moved IT & Infrastructure
collaborationquestionannouncementworkspace
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.
  • B Offline
    B Offline
    bonokoot
    wrote on last edited by
    #1

    Are there any Version Control Systems out there that will monitor a a directory and when it detects a change to a file check it in automatically for you, or are there any programs that will do something simliar to this? I have a request that when files are copied over to a directory whether they're new or being replaced their updates are checked into some Source Control environment. Thank You

    P P 2 Replies Last reply
    0
    • B bonokoot

      Are there any Version Control Systems out there that will monitor a a directory and when it detects a change to a file check it in automatically for you, or are there any programs that will do something simliar to this? I have a request that when files are copied over to a directory whether they're new or being replaced their updates are checked into some Source Control environment. Thank You

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You could always use a FileSystemWatcher in .NET to monitor file changes. Most source control systems have an API that you can hook into programatically.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      A 1 Reply Last reply
      0
      • B bonokoot

        Are there any Version Control Systems out there that will monitor a a directory and when it detects a change to a file check it in automatically for you, or are there any programs that will do something simliar to this? I have a request that when files are copied over to a directory whether they're new or being replaced their updates are checked into some Source Control environment. Thank You

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

        You'll wind up with a bunch of needless rubbish in your Version Control System. Never put anything into Version Control unless you're confident that it's correct.

        1 Reply Last reply
        0
        • P Pete OHanlon

          You could always use a FileSystemWatcher in .NET to monitor file changes. Most source control systems have an API that you can hook into programatically.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          But dont you think FileSystemWatcher of .NET kills a lot of CPU. I have used it in a windows service and it started killing almost 50% of CPU all the time. Then I left out that and made a new Timer Thread to manually see the changes to the files. I dont know how many polls the FileSystemWatcher makes in a single second. :confused:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          A 1 Reply Last reply
          0
          • A Abhishek Sur

            But dont you think FileSystemWatcher of .NET kills a lot of CPU. I have used it in a windows service and it started killing almost 50% of CPU all the time. Then I left out that and made a new Timer Thread to manually see the changes to the files. I dont know how many polls the FileSystemWatcher makes in a single second. :confused:

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

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

            Abhishek Sur wrote:

            But dont you think FileSystemWatcher of .NET kills a lot of CPU.

            No, on our site we use it extensively, watching for files to appear in multiple directories for automatic processing. Perhaps you did not configure it correctly?

            Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

            A 1 Reply Last reply
            0
            • A Ashfield

              Abhishek Sur wrote:

              But dont you think FileSystemWatcher of .NET kills a lot of CPU.

              No, on our site we use it extensively, watching for files to appear in multiple directories for automatic processing. Perhaps you did not configure it correctly?

              Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

              A Offline
              A Offline
              Abhishek Sur
              wrote on last edited by
              #6

              I am doing the same thing. I have used FileSystemWatcher to process some files automatically through a windows service. The windows service watches the FTP folder, so that when a file comes it processes it. I have just created an object of FileSystemWatcher and hooked up its Renamed Event. It generates event properly, and processes it.. But after using this I saw the service always takes 50% of my CPU. It seemed to me odd and just created a Thread myself, which checks after every 1 second. It saved 25% of my CPU now. Dont know where I was wrong. Its really seemed weird to me. :doh:

              Abhishek Sur


              My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

              **Don't forget to click "Good Answer" if you like to.

              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