comparison doc/upgrading.txt @ 4582:753a379c0303

Fix syntax errors in doc/upgrading.txt and .gitignore doc/upgrading.txt produced errors with latest docutils about wrong block structure. Thanks to Cheer Xiao for the patches.
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 26 Jan 2012 15:30:44 +0100
parents bce9aaf19a3b
children 4f9c3858b671
comparison
equal deleted inserted replaced
4581:f1d6e2b2eb64 4582:753a379c0303
20 mail without attachment was received via the mail interface. The 20 mail without attachment was received via the mail interface. The
21 following script will list likely issues being affected by the bug. 21 following script will list likely issues being affected by the bug.
22 The date in the script is the date of the 1.4.17 release. If you have 22 The date in the script is the date of the 1.4.17 release. If you have
23 installed 1.4.17 later than this date, you can change the date 23 installed 1.4.17 later than this date, you can change the date
24 appropriately to your installation date. Run the script in the directory 24 appropriately to your installation date. Run the script in the directory
25 of your tracker. 25 of your tracker::
26 26
27 #!/usr/bin/python 27 #!/usr/bin/python
28 import os 28 import os
29 from roundup import instance 29 from roundup import instance
30 from roundup.date import Date 30 from roundup.date import Date
31 dir = os.getcwd () 31 dir = os.getcwd ()
32 tracker = instance.open (dir) 32 tracker = instance.open (dir)
33 db = tracker.open ('admin') 33 db = tracker.open ('admin')
34 # you may want to change this to your install date to find less candidates 34 # you may want to change this to your install date to find less candidates
35 last_release = Date('2011-05-13') 35 last_release = Date('2011-05-13')
36 affected = {} 36 affected = {}
37 for i in db.issue.getnodeids(): 37 for i in db.issue.getnodeids():
38 for j in db.issue.history(i): 38 for j in db.issue.history(i):
39 if i in affected: 39 if i in affected:
40 break 40 break
41 if j[1] < last_release or j[3] != 'set' or 'files' not in j[4]: 41 if j[1] < last_release or j[3] != 'set' or 'files' not in j[4]:
42 continue 42 continue
43 for op, p in j[4]['files']: 43 for op, p in j[4]['files']:
44 if op == '-': 44 if op == '-':
45 affected [i] = 1 45 affected [i] = 1
46 break 46 break
47 print ', '.join(sorted(affected.iterkeys())) 47 print ', '.join(sorted(affected.iterkeys()))
48 48
49 To find out which files where attached before you can look in the 49 To find out which files where attached before you can look in the
50 history of the affected issue. For fixing issues you can re-attach the 50 history of the affected issue. For fixing issues you can re-attach the
51 files in question using the "set" command of roundup-admin, e.g., if the 51 files in question using the "set" command of roundup-admin, e.g., if the
52 list of files attached to an issue should be files 5, 17, 23 for issue42 52 list of files attached to an issue should be files 5, 17, 23 for issue42

Roundup Issue Tracker: http://roundup-tracker.org/