DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Software Version Control Visualization - Gource

Software Version Control Visualization - Gource

Markus Eisele user avatar by
Markus Eisele
·
Sep. 14, 11 · Java Zone · Interview
Like (0)
Save
Tweet
6.85K Views

Join the DZone community and get the full member experience.

Join For Free

I've been playing around with visualizations since some time. You might remember my post about GlassFish City where I did a visualization with CodeCity. I came across another great visualization tool called Gource. It paints an animated tree of your projects repository history with the root directory of the project at its center.

Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project. The animation looks nice and you have a lot of options to configure the look and feel. The most interesting part is to generate short (or long :)) videos from the journey your team has taken through the project. And there is also a way to do this. Specifying the -o (aka --output-ppm-stream) option let's Gource write an uncompressed sequence of screenshots in PPM format which can then be processed by a video encoder to produce a video.
The most basic example could be done with SVN, because SVN support is build in with Gource since 0.29.
svn log -r 1:HEAD --xml --verbose --quiet > my-project-log.xml
Next is to run gource on this:
gource my-project-log.xml
Now you have a nice UI where you cann simply watch whats happening or even drag around a bit to see what your team members were doing. If you are looking into creating a video you have to simply run gource in streaming mode:
gource my-project-log.xml -f --hide usernames -o neutral.ppm
If you think about publishing it ... please hide the details (as shown above) and you could also think about tightening the timeline a bit.
--seconds-per-day 0.1 --auto-skip-seconds 0.1
After you are done, you have a more or less big file on your hdd which needs to be processed with your video encoder of choice. The most simple approach is to run your PPM stream through ffmpeg.
ffmpeg -an -y -f image2pipe -vcodec ppm -i neutral.ppm -vcodec libx264 -s 800x600 -r 30.000 -vb 8000000 final.mp4
That's all. Enjoy!

From http://blog.eisele.net/2011/09/software-version-control-visualization.html

Visualization (graphics) Version control Software

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Monitoring Spring Boot Application With Prometheus and Grafana
  • What Emerging Technologies Make Data Centers More Energy Efficient?
  • Event-Driven Microservices?
  • Are All Kubernetes Ingresses the Same?

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo