X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=module-tools.py;h=b9d0cb74bc1c8bf9af896f0067aef6626d318aeb;hb=4bfad922a62b5782224598da4a17bd9419b744b1;hp=178f8802f761b34564b2e0986980a78428d8bd1f;hpb=85ee98e6adde988dcbfd93c8d8bc55a5d1c11f60;p=build.git diff --git a/module-tools.py b/module-tools.py index 178f8802..b9d0cb74 100755 --- a/module-tools.py +++ b/module-tools.py @@ -412,7 +412,7 @@ that for other purposes than tagging"""%topdir def unignored_lines (self, logfile): result=[] - exclude="Tagging module %s"%self.name + exclude="Setting tag %s"%self.name white_line_matcher = re.compile("\A\s*\Z") for logline in file(logfile).readlines(): if logline.strip() == Module.svn_magic_line: @@ -652,14 +652,16 @@ The module-sync function has the following limitations # brute-force : change uncommented lines that define -SVNPATH else: if self.options.verbose: - print 'Setting %s-SVNPATH for using %s\n\tin %s .. '%(self.name,newname,tagsfile), - pattern="\A\s*%s-SVNPATH\s*(=|:=)\s*(?P[^\s]+)/%s/[^\s]+"\ - %(self.name,self.name) + print 'Searching for -SVNPATH lines referring to /%s/\n\tin %s .. '%(self.name,tagsfile), + pattern="\A\s*(?P[^\s]+)-SVNPATH\s*(=|:=)\s*(?P[^\s]+)/%s/[^\s]+"\ + %(self.name) matcher_module=re.compile(pattern) for line in tags.readlines(): attempt=matcher_module.match(line) if attempt: - svnpath="%s-SVNPATH"%self.name + svnpath="%s-SVNPATH"%(attempt.group('make_name')) + if self.options.verbose: + print ' '+svnpath, replacement = "%-32s:= %s/%s/tags/%s\n"%(svnpath,attempt.group('url_main'),self.name,newname) new.write(replacement) matches += 1 @@ -715,11 +717,11 @@ The module-sync function has the following limitations # so we can provide useful information, such as version numbers and diff # in the same file changelog="/tmp/%s-%d.txt"%(self.name,os.getpid()) - file(changelog,"w").write("""Tagging module %s - %s + file(changelog,"w").write("""Setting tag %s %s Please write a changelog for this new tag in the section above -"""%(self.name,new_tag_name,Module.svn_magic_line)) +"""%(new_tag_name,Module.svn_magic_line)) if not self.options.verbose or prompt('Want to see diffs while writing changelog',True): file(changelog,"a").write('DIFF=========\n' + diff_output)