no way to compare when less than two revisions

Différences

Ci-dessous, les différences entre deux révisions de la page.


Révision précédente
doc:showdiff [20/11/2014 14:02] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +Fichier showdiff :
 +<code bash>
 +#!/bin/bash
 +KOMPARE=`which kompare`
 +if [ $? -ne 0 ]; then
 + echo "kompare non trouve"
 + exit 1
 +fi
  
 +FICHIER="diff-`date +"%Y%m%d-%H%M%S"`"
 +svn diff $* > $FICHIER
 +if [ $? -ne 0 ]; then
 + echo "Echec du SVN diff"
 + exit 2
 +fi
 +if [ ! -s $FICHIER ]; then
 + echo "Pas de differences"
 + rm $FICHIER
 + exit 0
 +fi
 +
 +$KOMPARE $FICHIER
 +rm $FICHIER
 +</code>
Imprimer/exporter