From: "Денис Смирнов" <mithraen@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] new "utility" -- gear-svnupdate
Date: Thu, 21 Sep 2006 23:30:06 +0400
Message-ID: <20060921193006.GB24056@localhost.localdomain> (raw)
[-- 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
next reply other threads:[~2006-09-21 19:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-21 19:30 Денис Смирнов [this message]
2006-09-22 5:56 ` Alexey Tourbin
2006-09-22 11:55 ` Денис Смирнов
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060921193006.GB24056@localhost.localdomain \
--to=mithraen@altlinux.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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