darcs-graph 0.3.1 → 0.3.2
raw patch · 4 files changed
+5/−84 lines, 4 files
Files
- Graph.hs +2/−2
- README +0/−25
- darcs-graph.cabal +3/−3
- remote-darcs-graph +0/−54
Graph.hs view
@@ -163,8 +163,8 @@ fmt (s,n) = joinWithSpace s (pack . show $ n) fmt' (n,d) = joinWithSpace (pack.show $ n) (pack.show $ d) - ignore f = f /= pack "pending"- && f /= pack "unrevert"+ ignore f = f /= pack "unrevert"+ && not (pack "pending" `C.isPrefixOf` f) && not (pack "." `C.isPrefixOf` f) joinWithSpace s t = B.intercalate (B.singleton 32) [s,t]
− README
@@ -1,25 +0,0 @@--- darcs-graph------ draw pretty graphs of a darcs repository's activity, including a--- 7-day sliding average-----Depends on the fps library included with 6.6, and available separate for 6.4:- http://www.cse.unsw.edu.au/~dons/fps.html-(version 0.7 or greater)--Invokes gnuplot to generate the graph: http://www.gnuplot.info/--Building:- $ chmod +x Setup.hs- $ ./Setup.hs configure --prefix=/home/dons- $ ./Setup.hs build- $ ./Setup.hs install--Use:- $ darcs-graph /home/dons/lambdabot- Output written to: /tmp/lambdabot-commits.png--Author:- Don Stewart, http://www.cse.unsw.edu.au/~dons- Wed Jun 14 17:49:32 EST 2006
darcs-graph.cabal view
@@ -1,5 +1,5 @@ Name: darcs-graph-Version: 0.3.1+Version: 0.3.2 License: BSD3 License-file: LICENSE Category: Distribution@@ -15,8 +15,8 @@ Executable darcs-graph Main-is: Graph.hs- Extensions: CPP- Ghc-options: -fglasgow-exts -Wall+ Extensions: CPP, PatternGuards+ Ghc-options: -Wall if flag(small_base) build-depends: base >= 3,
− remote-darcs-graph
@@ -1,54 +0,0 @@-#!/bin/sh--# Copyright (c) 2006 Don Stewart - http://www.cse.unsw.edu.au/~dons-# GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)--set -e--#-# generate a graph of a remote darcs repository-#-# requires darcs-graph and wget in the $PATH--#-# reads darcs repo urls line-by-line on stdin, generating graphs, and-# playing them in a web server dir (currently hard coded below)-#--# create a fake patches dir-d=`mktemp -d`-cd $d--# read darcs repo urls on stdin-while read url ; do-- b=`basename $url`- p=$b/_darcs/patches-- mkdir $b- cd $b-- # get index.html for patches dir- echo "Fetching " $url- if wget -q "$url/_darcs/patches" ; then-- mkdir -p $p-- # assumes servers return patch dirs in the same format- cd $p- cat ../../../index.html | tr A-Z a-z |\- sed '/href/!d; s/.*href="//; s/">.*$//;/\.gz$/!d' | xargs touch- cd ../../..-- /home/dons/bin/darcs-graph -y 25 $b && \- mv /tmp/$b-commits.png /home/dons/www/images/commits/community-- fi &-- cd ..--done--wait--rm -rf $d