From: "Alexey I. Froloff" <raorn@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Бранч для svn-репозитария в git
Date: Sun, 31 Aug 2008 20:07:30 +0400
Message-ID: <20080831160730.GX8478@altlinux.org> (raw)
In-Reply-To: <f7a739430808310718g4fd3594bi55de1e08797180b5@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
* Eugene Prokopiev <enp@> [080831 18:29]:
> достаточно просто перейти на сборку из svn + иметь возможность
> собирать нескольким майнтейнерам
Тогда так:
$ ssh -n git.alt git-clone git.alt:/archive/p/package-name.git
$ git clone git.alt:packages/package-name.git
$ git branch -d srpms
$ git push origin :srpms
$ git svn init -s svn://radlinux.org/radlinux/
$ git svn fetch
Теперь весь репозитарий втянут в remotes/trunk, remotes/tags/* и
remotes/branches/*, это делает опция -s для svn init.
$ git mv имякаталога/* .
$ git mv имякаталога/.* . # (if any)
$ git commit -m 'git mv имякаталога/* .'
$ git pull . tags/ВЕРСИЯ_ПАКЕТА
Тут мы "пристёгиваем" нужную версию из svn к истории пакета.  Как
правило мёрж происходит чисто, но могут быть проблемы если тарбол
не соответствует чекауту из svn.  -s ours делать не рекомендую,
лучше таки проконтролировать процесс.
Далее в .gear/rules будет примерно так:
tar: remotes/tags/@version@:.
diff: remotes/tags/@version@:. .
Потом прикладываем все патчи (в master, или в разные бранчи - как
удобно) и двигаемся к новому снапшоту:
$ git pull . tags/НОВАЯ_ВЕРСИЯ или trunk или branches/БРАНЧ
-- 
Regards,
Sir Raorn.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply	other threads:[~2008-08-31 16:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-30 16:35 Eugene Prokopiev
2008-08-30 16:43 ` Eugene Prokopiev
2008-08-30 21:50   ` Vitaly Ostanin
2008-08-31  7:31     ` Eugene Prokopiev
2008-08-31 13:00       ` Vitaly Ostanin
2008-08-31 13:35         ` Eugene Prokopiev
2008-08-31 14:11   ` Alexey I. Froloff
2008-08-31 14:18     ` Eugene Prokopiev
2008-08-31 16:07       ` Alexey I. Froloff [this message]
2008-08-31 19:36         ` Eugene Prokopiev
2008-08-31 20:08           ` Alexey I. Froloff
2008-09-01  8:34             ` Eugene Prokopiev
2008-09-01 16:26               ` Alexey I. Froloff
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=20080831160730.GX8478@altlinux.org \
    --to=raorn@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