* src/plugins/Checkpoint.py (rcs): define variable comment before using it.

svn: r5022
This commit is contained in:
Martin Hawlisch 2005-08-05 15:31:46 +00:00
parent 55447ac858
commit d575d56cba
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2005-08-05 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/Checkpoint.py (rcs): define variable comment before using it.
2005-08-04 Don Allingham <don@gramps-project.org> 2005-08-04 Don Allingham <don@gramps-project.org>
* src/Spell.py: Interface to gtkspell * src/Spell.py: Interface to gtkspell
* src/AddrEdit.py: add spell checker to notes * src/AddrEdit.py: add spell checker to notes

View File

@ -116,6 +116,8 @@ class Checkpoint:
""" """
(archive_base,ext) = os.path.splitext(self.db.get_save_path()) (archive_base,ext) = os.path.splitext(self.db.get_save_path())
comment = self.timestamp()
archive = archive_base + ",v" archive = archive_base + ",v"
if not os.path.exists(archive): if not os.path.exists(archive):
proc = popen2.Popen3('rcs -i -U -q -t-"GRAMPS database" %s' % archive,True) 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 = WriteXML.XmlWriter(self.db,self.callback,False,False)
xmlwrite.write(archive_base) xmlwrite.write(archive_base)
comment = self.timestamp()
proc = popen2.Popen3("ci %s" % archive_base,True) proc = popen2.Popen3("ci %s" % archive_base,True)
proc.tochild.write(comment) proc.tochild.write(comment)
proc.tochild.close() proc.tochild.close()