From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 21 Sep 2006 23:30:06 +0400 From: =?koi8-r?B?5MXOydMg883J0s7P1w==?= To: devel@lists.altlinux.org Message-ID: <20060921193006.GB24056@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [devel] new "utility" -- gear-svnupdate X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 19:30:32 -0000 Archived-At: List-Archive: List-Post: --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit В связи с большим количеством репозиториев у меня, использующих svn, я написал простейшую утилитку для обновления git из svn. Утилитка и пример конфига для нее в аттаче. Оно кому-нибудь кроме меня надо? -- С уважением, Денис http://freesource.info ---------------------------------------------------------------------------- Могу решить проблему путем выкидывания пакета на свалку истории. -- ldv in #6962 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=".gear-svn" svn-mxml http://svn.digium.com/svn/mxml/trunk --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=gear-svnupdate #!/bin/sh svn_fetch() { export GIT_SVN_NO_LIB=1 if [ ! -d .git/refs/remotes/$2 ]; then git-svn init -i $1 $2 fi git-svn fetch -i $1 } cat .gear-svn | while read name repo; do if [ "x$name" == "x" ]; then exit 0 fi if [ "x$repo" == "x" ]; then echo "Repo not defined for $name" exit -1 fi echo "Updating $name..." svn_fetch "$name" "$repo" done --+HP7ph2BbKc20aGI--