/ Published in: Bash

This script get (in the correct tree folder structure) all files changed between 2 revisions.
NOTICE: This scripts does not advice about files deleted
NOTICE: This scripts does not advice about files deleted
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash # usage: ./diffpackage.sh <init_version> <final_version> # example: ./diffpackage.sh 303 315 repo_url=https://127.0.0.1/usvn/svn/MyProyect/trunk # Export diff files for i in $(svn diff --summarize -r $1:$2 $repo_url | awk '{ print $2 }'); do p=diff_$1_$2/$(echo $i | sed -e "s{$repo_url/{{"); mkdir -p $(dirname $p); svn export $i $p; done
Comments
