Source

hgsync /

Filename Size Date modified Message
227 B
613 B
7.4 KB
18.1 KB
1.1 KB
Synchronizing hg repositories in different locations.

In my working environment we still use DOS a lot to modify code hosted on 
Novell (with some arcane Linux distros) servers. Same project is hosted on 
different servers, and has to be synchronized to each other. All the projects 
are shared with Samba service. There is a Windows server connecting to all the 
Samba shares. The synchronizing script runs on the Windows Server. Currently we 
use a simple copy-to-all method to keep the projects synchronized.

This script is an attempt to integrate version control with directory 
synchronizing . It provides a simple way to turn the project directories into 
hg repos, synchronizing projects among different locations, and also tracks 
project changes. 

Since there is no way to talk directly between DOS and Linux, simple flag files
are used to exchange infomation. The server side script monitors for flag
changes, actions are triggered by the flags.

Currently only simple auto committing, synchronizing, and auto 
branching are supported.

Simple logging is also supported.