r10161 pywikipedia - Code Review archive

Repository:pywikipedia
Revision:r10160‎ | r10161 | r10162 >
Date:14:17, 30 April 2012
Author:xqt
Status:ok
Tags:
Comment:
update from trunk r9913, r10160
Modified paths:
  • /branches/rewrite/scripts/version.py (modified) (history)

Diff [purge]

Index: branches/rewrite/scripts/version.py
@@ -2,7 +2,7 @@
33 """ Module to determine the pywikipedia version (tag, revision and date) """
44 #
55 # (C) Merlijn 'valhallasw' van Deen, 2007-2008
6 -# (C) xqt, 2010-2011
 6+# (C) xqt, 2010-2012
77 # (C) Pywikipedia bot team, 2007-2011
88 #
99 # Distributed under the terms of the MIT license.
@@ -62,10 +62,10 @@
6363 from datetime import datetime
6464 con = sqlite.connect(os.path.join(_program_dir, ".svn/wc.db"))
6565 cur = con.cursor()
66 - cur.execute( '''select local_relpath, repos_path, revision, changed_date from nodes order by revision desc''')
 66+ cur.execute( '''select local_relpath, repos_path, revision, changed_date from nodes order by revision desc, changed_date desc''')
6767 name, tag, rev, date = cur.fetchone()
6868 con.close()
69 - tag = tag.rstrip(name)
 69+ tag = tag[:len(tag) - len(name)]
7070 date = time.gmtime(date/1000000)
7171 else:
7272 for i in range(3):

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r9913Follow-up to r9647, see bug #3489508binbot08:52, 20 February 2012
r10160fix for directory tagxqt14:12, 30 April 2012

Status & tagging log