ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Artem Zolochevskiy" <artem.zolochevskiy@gmail.com>
To: "ALT Linux Team development discussions" <devel@lists.altlinux.org>
Subject: [devel] как держать backports в git
Date: Thu, 25 Sep 2008 08:47:27 +0300
Message-ID: <774a4f4a0809242247g27d2bd86u79b1771b4047688c@mail.gmail.com> (raw)

hi all

Прошу совета у знатоков git относительно того, как в нём держать backports.
У меня такого опыта не было. А попытки сделать это привели к конфликтам,
с которыми у меня тоже нет опыта работы.

Вот, что получилось у меня.

http://git.altlinux.org/people/azol/private/example.git

а вот, что я делал:
делаем backport версии 2.0-alt1
git-branch altlinux-4.1 2.0-alt1
git-checkout altlinux-4.1
s/Release: alt1/Release: alt0.M41.1
add_changelog -e "build for 4.1 branch (2.0-alt1)" example.spec
gear-commit -a
git-tag -a -m "example 2.0-alt0.M41.1" 2.0-alt0.M41.1

появляется новая версия в master
git-checkout master
s/Version: 2.0/Version: 3.0/
add_changelog -e "- version 3.0" example.spec
gear-commit -a
git-tag -a -m "example 3.0-alt1" 3.0-alt1

Как мне теперь делать backport версии 3.0-alt1?
git-pull . tag 3.0-alt1
(или git-merge master или git-merge 3.0-alt1)
получил конфликты.
У меня получилось что-то вроде
<<<<<<< HEAD:example.spec
Version: 2.0
Release: alt0.M41.1
=======
Version: 3.0
Release: alt1
>>>>>>>f6aa1fa14e5329d1490b5c0c88526e1e4759a309:example.spec

и

<<<<<<< HEAD:example.spec
* Thu Sep 25 2008 Artem Zolochevskiy <azol@altlinux.ru> 2.0-alt0.M41.1
- build for 4.1 branch (2.0-alt1)
=======
* Thu Sep 25 2008 Artem Zolochevskiy <azol@altlinux.ru> 3.0-alt1
- version 3.0
>>>>>>> f6aa1fa14e5329d1490b5c0c88526e1e4759a309:example.spec

(В этом случае в районе Version и Release:
я оставляю
Version: 3.0
Release: alt1
в районе changelog:
опускаем запись про 2.0-alt0.M41.1 ниже чем 3.0-alt1)
верно?

git-commit -a
s/Release: alt1/Release: alt0.M41.1/
add_changelog -e "build for 4.1 branch (3.0-alt1)" example.spec
gear-commit -a
git-tag -a -m "example 3.0-alt0.M41.1" 3.0-alt0.M41.1

и т.д. при необходимости делать backports.


Что делается правильно/неправильно и может быть сделано лучше?

-- 
Артём Золочевский

             reply	other threads:[~2008-09-25  5:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25  5:47 Artem Zolochevskiy [this message]
2008-09-25  5:53 ` Alexey Tourbin
2008-09-25  5:56   ` Artem Zolochevskiy
2008-09-25  6:01 ` Slava Semushin
2008-09-25  6:07   ` Artem Zolochevskiy
2008-09-25  6:27 ` Alexey Tourbin
2008-09-25  6:37   ` Artem Zolochevskiy
2008-09-25  6:46     ` Alexey Tourbin
2008-09-25  7:51 ` Alexey Borovskoy
2008-09-25  8:07   ` Artem Zolochevskiy
2008-09-26  6:46 ` Eugene Prokopiev

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=774a4f4a0809242247g27d2bd86u79b1771b4047688c@mail.gmail.com \
    --to=artem.zolochevskiy@gmail.com \
    --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