From 2ce09b504ea2e70dc04733c70245391f2b9df8f6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 14 Sep 2007 20:04:00 +0000 Subject: [PATCH] Minor bug fix. --- sccs2rcs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sccs2rcs b/sccs2rcs index 7056932..09fa971 100755 --- a/sccs2rcs +++ b/sccs2rcs @@ -68,6 +68,9 @@ # of RCS workfiles corresponding to SCCS workfiles present when started. # Lifting of VC mode snapshot info. Initial-comments file. # +# 1.5: Bug fix in comment extraction from Peter Grandcourt and Frederic +# G. Marand. +# # Eric S. Raymond # # $Id$ @@ -313,8 +316,10 @@ if __name__ == '__main__': deltalines.pop(0) if line.startswith("COMMENTS"): break - while not deltalines[0].strip(): - deltalines.pop(0) + # Strip ;eading blank lines if present. + if deltalines != ['', '']: + while not deltalines[0].strip(): + deltalines.pop(0) deltamsg = "\n".join(deltalines) cmd = 'ci -f -r%s -d"%s" -w%s %s' % (rev, rcsdate, author, stem) # FIXME: output of this command isn't logged -- 2.43.0