From d575d56cba98d4a74b8cf00925bc6c4ddb4a31c8 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Fri, 5 Aug 2005 15:31:46 +0000 Subject: [PATCH] * src/plugins/Checkpoint.py (rcs): define variable comment before using it. svn: r5022 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/Checkpoint.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 361dcf633..6dcfc420a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-08-05 Martin Hawlisch + * src/plugins/Checkpoint.py (rcs): define variable comment before using it. + 2005-08-04 Don Allingham * src/Spell.py: Interface to gtkspell * src/AddrEdit.py: add spell checker to notes diff --git a/gramps2/src/plugins/Checkpoint.py b/gramps2/src/plugins/Checkpoint.py index 0cd0186cd..ab16ff1bd 100644 --- a/gramps2/src/plugins/Checkpoint.py +++ b/gramps2/src/plugins/Checkpoint.py @@ -116,6 +116,8 @@ class Checkpoint: """ (archive_base,ext) = os.path.splitext(self.db.get_save_path()) + comment = self.timestamp() + archive = archive_base + ",v" if not os.path.exists(archive): proc = popen2.Popen3('rcs -i -U -q -t-"GRAMPS database" %s' % archive,True) @@ -131,8 +133,6 @@ class Checkpoint: xmlwrite = WriteXML.XmlWriter(self.db,self.callback,False,False) xmlwrite.write(archive_base) - comment = self.timestamp() - proc = popen2.Popen3("ci %s" % archive_base,True) proc.tochild.write(comment) proc.tochild.close()