Comments (8)
I will have a think about how to handle this, its seems like an edge case
though. The
largest real-world log I currently test with is from the Linux Kernel, and
that's
only about 40 megs.
Thanks for the report.
Original comment by [email protected]
on 22 Jan 2010 at 11:42
- Changed title: Handle huge log files (was crashes on a large custom log file)
- Changed state: Accepted
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from gource.
Just to let you know this is a log from a real-world clear case. I was able to
get it
to display (albeit slowy) in codeswarm, since codeswarm supports a pre-sorted
log file.
Original comment by [email protected]
on 22 Jan 2010 at 4:11
from gource.
Hi. This should be fixed now hopefully.
If the log file given to Gource is bigger than 100 megs, it will fall back to
just
seeking the file handle rather than loading the file into memory (which makes
the
seekbar feature a bit clunky, but should at least work).
http://gource.googlecode.com/files/gource-0.24-beta2.tar.gz
Original comment by [email protected]
on 31 Jan 2010 at 10:29
- Changed state: Fixed
from gource.
Dudley, would you be willing to share your script for creating the custom log
file
format from cleartool lshistory output? Thanks.
Original comment by [email protected]
on 8 May 2010 at 5:12
from gource.
@djpotter77
Sure. I will need to dig it up, but I should be able to get it this week
sometime.
Original comment by [email protected]
on 9 May 2010 at 3:09
from gource.
# This is the basic script which actually converts to a codeswarm format, but
you
# can easily modify it to work for gource. I actually wrote a separate script to
# convert from code_swarm to gource.
#!/usr/local/bin/python
"""
Take the output of the clear case history command
ct lshistory -all -fmt "Element: %n| Date: %d| User:%u| Operation: %e| Object:
%[type]p| SimpleType: %m| OperationKind: %o\n"
And turn it into something usable by code_swarm
"""
fileTypesWeCareAbout = [ 'compressed_file', 'compressed_text_file', 'file',
'html', 'text_file', 'xml']
import sys
import time
def processDate(date):
d = date[:-6]
d = time.strptime(d, "%Y-%m-%dT%H:%M:%S")
return int(time.mktime(d))*1000
def processElement(e):
return e.split("@@")[0] # just strip off the version info
def processLineIntoTuple(line):
"""Take the line and split it out into a dictionary"""
d = {}
for i in line.split("|"):
l = i.split(":",1)
if (len(l)) == 2:
d[l[0].strip()] = l[1].strip()
else:
d[l[0].strip()] = ""
return d
def UseThis(d):
try:
if d['OperationKind'] != "checkin":
return 0
if d['Object'] not in fileTypesWeCareAbout:
return 0
except:
return 0
return 1
def XMLize(d):
print '<event date="%d" filename="%s" author="%s" />' % (d['Date'], d['Element'],
d['User'])
for x in sys.stdin.readlines():
d = processLineIntoTuple(x)
if UseThis(d):
d['Date'] = processDate(d['Date'])
d['Element'] = processElement(d['Element'])
XMLize(d)
Original comment by [email protected]
on 11 May 2010 at 7:31
from gource.
Hi
Getting this error when running the script:
print <event date="%d" filename="%s" author="%s" /> % (d['Date'], d['Element'], d['User'])
^
SyntaxError: invalid syntax
What could be wrong?
thanks
Original comment by [email protected]
on 24 Jun 2010 at 1:59
from gource.
It looks like you are missing the single quotes around the first part.
You have:
print <event date="%d" filename="%s" author="%s" /> % (d['Date'], d['Element'], d['User'])
and it should be:
print '<event date="%d" filename="%s" author="%s" />' % (d['Date'], d['Element'], d['User'])
Original comment by [email protected]
on 24 Jun 2010 at 8:26
from gource.
Related Issues (20)
- Error in `gource': free(): invalid next size (normal) HOT 1
- download setup for windows HOT 3
- Start paused
- compile error ubuntu 14.04 x64 HOT 3
- Gource fails on OS X 10.9 HOT 3
- Unable to find git.exe? HOT 3
- Creating a custom version of gource HOT 4
- Allow localized display of date/time HOT 1
- ffmpeg gets IO errors about 3/4 way through gource PPM file HOT 8
- Question about Gource Output HOT 1
- Gource will not accept my .log HOT 8
- Version of freetype2 less than 9.0.3 error HOT 2
- Gource displays underscore as +af8- HOT 1
- It's not an issue HOT 1
- Move old captions up, display new ones at bottom HOT 1
- Git Rebase
- configure fails on systems w/o explicit /usr/lib64 (i.e. ubuntu & possibly others w/ /usr/lib/x86_64-linux-gnu/)
- what is this command line you speak of HOT 2
- Can't find git.exe. HOT 2
- Size does metter - feature request ... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gource.