ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] new "utility" -- gear-svnupdate
@ 2006-09-21 19:30 Денис Смирнов
  2006-09-22  5:56 ` Alexey Tourbin
  0 siblings, 1 reply; 3+ messages in thread
From: Денис Смирнов @ 2006-09-21 19:30 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

В связи с большим количеством репозиториев у меня, использующих svn, я
написал простейшую утилитку для обновления git из svn.

Утилитка и пример конфига для нее в аттаче.

Оно кому-нибудь кроме меня надо?

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
Могу решить проблему путем выкидывания пакета на свалку истории.
		-- ldv in #6962

[-- Attachment #2: .gear-svn --]
[-- Type: text/plain, Size: 47 bytes --]

svn-mxml http://svn.digium.com/svn/mxml/trunk


[-- Attachment #3: gear-svnupdate --]
[-- Type: text/plain, Size: 390 bytes --]

#!/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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-22 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 19:30 [devel] new "utility" -- gear-svnupdate Денис Смирнов
2006-09-22  5:56 ` Alexey Tourbin
2006-09-22 11:55   ` Денис Смирнов

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git