From 32fdd768988c88a5b81dc2794547e8105bab7c15 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 4 Mar 2009 14:32:35 +0100 Subject: [PATCH] Add support for authormaps --- reposync.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reposync.py b/reposync.py index ecac74b..2af478d 100755 --- a/reposync.py +++ b/reposync.py @@ -138,6 +138,17 @@ class SyncMethodRsyncCvs(SyncMethod): rsyncpath )) + # If an authormap exists for this repository, copy it over now. The + # rsync process will remove it again, so we need to redo this after + # each time we rsync. + if os.path.isfile("%s/authormap/%s" % ( + self.conf.get("paths", "githome"), self.name)): + shutil.copyfile( + "%s/authormap/%s" % ( + self.conf.get("paths", "githome"), self.name), + "%s/CVSROOT/authormap" % rsyncpath) + + # Now perform Git Import Magic (TM) savedir = os.getcwd() os.chdir("%s/sw/fromcvs" % self.conf.get("paths", "githome")) -- 2.39.5