Giter Site home page Giter Site logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I'll be taking a look at this today :)

Original comment by [email protected] on 29 Jun 2008 at 4:45

  • Changed state: Accepted

from codeswarm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I have applied/tested this patch, thanks shadone :)

Original comment by [email protected] on 7 Jul 2008 at 5:52

  • Changed state: Fixed

from codeswarm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I've tried it and it does not work on log from linux-2.6-stable :

head activity.log

------------------------------------------------------------------------
r92dcffb| [email protected] | 2010-01-21 15:31:35 -0800 (Thu, 21 
Jan 2010
15:31:35 -0800) | x lines
Changed paths:
M   Makefile


------------------------------------------------------------------------
re80b135| [email protected] | 2010-01-21 08:50:04 -0800 (Thu, 21 
Jan 2010
08:50:04 -0800) | x lines
Changed paths:


python convert_logs.py -g activity.log
Traceback (most recent call last):
  File "convert_logs.py", line 408, in <module>
    main()
  File "convert_logs.py", line 116, in main
    date = time.strptime(date, '%Y-%m-%d %H:%M:%S')
  File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.6/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'x lines\n' does not match format '%Y-%m-%d %H:%M:%S'

Original comment by [email protected] on 25 Jan 2010 at 9:48

from codeswarm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
correct line for conversion should have a space before '|' in '%h| %ae |', 
should be
'%h | %ae | %ai'

git log --name-status
--pretty=format:'%n-------------------------------------------------------------
-----------%nr%h
| %ae | %ai (%aD) | x lines%nChanged paths:' >
~/src/codeswarm-read-only/convert_logs/activity.log

Original comment by [email protected] on 27 Jan 2010 at 9:36

from codeswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.