code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] CVS history window #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I recently upgraded to OSX 10.5 and the version cvs on there seems to have
a different formatting for output from the one that was on 10.4. The status
commands still seem to work but when opening the history window I get the
following traceback.

Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py",
line 486, in __bootstrap_inner
    self.run()
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py",
line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File
"/Users/codyprecord/Desktop/devel/Editra/plugins/editra-plugins/trunk/Projects/p
rojects/ProjectPane.py",
line 961, in resultWrapper
    result.append(method(*args, **kwargs))
  File
"/Users/codyprecord/Desktop/devel/Editra/plugins/editra-plugins/trunk/Projects/p
rojects/CVS.py",
line 129, in history
    current['date'] = self.str2datetime(m.group(1))
AttributeError: 'NoneType' object has no attribute 'group'

I checked the output of 'cvs rlog' which is what is called in CVS.py and it
has the following output.

RCS file: /Users/codyprecord/CVSREPO/download.php,v
head: 1.1
branch: 1.1.1
locks: strict
access list:
symbolic names:
    editra_web: 1.1.1.1
    editra: 1.1.1
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.1
date: 2008-05-23 19:58:07 -0500;  author: codyprecord;  state: Exp; 
commitid: cdr37WYfekrrz94t;
branches:  1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2008-05-23 19:58:07 -0500;  author: codyprecord;  state: Exp;  lines:
+0 -0;  commitid: cdr37WYfekrrz94t;
initial import

Maybe my cvs isn't setup right? Forgetting how to use it, its been
awhile... But I dont remember that RCS stuff being shown before the log
output before.

Cody

Original issue reported on code.google.com by CodyPrec...@gmail.com on 5 Jul 2008 at 1:05

GoogleCodeExporter commented 9 years ago
From the regular expressions, it looks like the dates for revisions used to 
just be displayed as dates, but not it 
includes a date and time.  I'll look into it.

Original comment by Kevin.Da...@gmail.com on 5 Jul 2008 at 1:45

GoogleCodeExporter commented 9 years ago
Actually, a closer look shows that it isn't dates and times, but a time zone 
that was added.  I added that as an 
optional part of the regular expression.

Original comment by Kevin.Da...@gmail.com on 5 Jul 2008 at 1:50

GoogleCodeExporter commented 9 years ago
Thanks,

The matching now works but the conversion to datetime has some issues:

Exception in thread Thread-29:
Traceback (most recent call last):
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", 
line
486, in __bootstrap_inner
    self.run()
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/threading.py", 
line
446, in run
    self.__target(*self.__args, **self.__kwargs)
  File
"/Users/codyprecord/Desktop/devel/Editra/plugins/editra-plugins/trunk/Projects/p
rojects/ProjectPane.py",
line 961, in resultWrapper
    result.append(method(*args, **kwargs))
  File
"/Users/codyprecord/Desktop/devel/Editra/plugins/editra-plugins/trunk/Projects/p
rojects/CVS.py",
line 129, in history
    current['date'] = self.str2datetime(m.group(1))
  File
"/Users/codyprecord/Desktop/devel/Editra/plugins/editra-plugins/trunk/Projects/p
rojects/CVS.py",
line 224, in str2datetime
    for x in re.split(r'[\s+/:]', s.strip()) if x])
ValueError: invalid literal for int() with base 10: '2008-05-23'

Original comment by CodyPrec...@gmail.com on 5 Jul 2008 at 2:59

GoogleCodeExporter commented 9 years ago
I added "-" as a split character for that expression as well.  It should work 
now.

Original comment by Kevin.Da...@gmail.com on 5 Jul 2008 at 3:20

GoogleCodeExporter commented 9 years ago
Looks good

Thanks

Original comment by CodyPrec...@gmail.com on 5 Jul 2008 at 3:22

GoogleCodeExporter commented 9 years ago
Move old 'fixed' issues to verified

Original comment by CodyPrec...@gmail.com on 3 Feb 2009 at 8:18