Lines Matching full:master
7 python treesync.py slave master
9 The assumption is that "master" contains CVS administration while
11 entry in the master tree are synchronized. This means:
17 copy the slave to the master
18 else (the master is newer):
19 copy the master to the slave
21 normalizing the slave means replacing CRLF with LF when the master
55 [slave, master] = args
61 process(slave, master)
63 def process(slave, master): argument
64 cvsdir = os.path.join(master, "CVS")
66 print "skipping master subdirectory", master
71 print "master", master
75 print "skipping master subdirectory", master
88 names = os.listdir(master)
90 mastername = os.path.join(master, name)
104 m = os.path.join(master, name)
109 def compare(slave, master): argument
115 mf = open(master, 'rb')
120 print "Neither master nor slave exists", master
123 copy(master, slave, answer=create_files)
126 print "Not updating missing master", master
134 # Master is newer -- copy master to slave
137 print "Master ", master
139 copy(master, slave, answer=write_slave)
141 # Slave is newer -- copy slave to master
142 print "Slave is", sft-mft, "seconds newer than master"
149 print "***UPDATING MASTER (BINARY COPY)***"
150 copy(slave, master, "rb", answer=write_master)
152 print "***UPDATING MASTER***"
153 copy(slave, master, "r", answer=write_master)