ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: nut-2.2.2
Date: Tue, 10 Feb 2009 11:10:26 +0300
Message-ID: <49913672.8010804@solin.spb.ru> (raw)
In-Reply-To: <f7a739430902092324n2fbca5c4n960eedb80175e612@mail.gmail.com>

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

Eugene Prokopiev пишет:
>> Это сделано для добавления в спек конструкции с отдельной историей
>> (автоматизации вычисления правильного релиза, в зависимости от требуемого
>> бранча). В дальнейшем -- позволит обновлять данную конструкцию (при
>> появлении новых бранчей) простым образом, через git pull. (Пример такого
>> обновления, добавление поддержки M50, как раз и привлёк твоё внимание выше.)
> 
> А насколько эта конструкция совместима с новой сборочной системой,
> которая все равно требует явных разных коммитов для разных бранчей?
> 

   Полностью совместима: бранч для бэкпорта конечно потребуется, но 
обновлять его можно через git pull с простым конфликтом (в %changelog).

   Небольшая демонстрация на примере бранчей demo/master (см. 
<http://git.altlinux.org/people/solo/packages/?p=nut.git;a=shortlog;h=refs/heads/demo/master>) 
  и demo/4.0 (см. 
<http://git.altlinux.org/people/solo/packages/?p=nut.git;a=shortlog;h=refs/heads/demo/4.0>):

1. Завожу демонстрационный бранч demo/master и обновляю в нём спек до:

$ git-diff master demo/master|cat
diff --git a/nut.spec b/nut.spec
index 8ea317b..fba4aa5 100644
--- a/nut.spec
+++ b/nut.spec
@@ -3,7 +3,7 @@
  # for set release
  %define release_pre alt
  %define release_base_num 1
-%define release_base_num2 1
+%define release_base_num2 2
  %define release_suff %nil

  # for distr selected
@@ -629,6 +629,10 @@ fi
  %_man3dir/*

  %changelog
+* Tue Feb 10 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.2
+- NMU
+- For backports demonstration.
+
  * Mon Feb 09 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.1
  - NMU

2. Завожу демонстрационный бранч demo/4.0:

$ git-checkout -b demo/4.0 4.0

3. $ git-pull . demo/master
Auto-merged nut.spec
CONFLICT (content): Merge conflict in nut.spec
Automatic merge failed; fix conflicts and then commit the result.

а) получаем обещанный конфликт:

%changelog
<<<<<<< HEAD:nut.spec
* Mon Feb 09 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.0.M40.1
- NMU
- Backports to 4.0
=======
* Tue Feb 10 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.2
- NMU
- For backports demonstration.
 >>>>>>> 2c105c94d9dd31a8be3d2515764216d9ac115d69:nut.spec

* Mon Feb 09 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.1
- NMU

б) решаем его (и обновляя релиз/дату) и комитим.

3. На выходе -- корректный бэкпорт:

$ git-diff 4.0 demo/4.0|cat
diff --git a/nut.spec b/nut.spec
index b2dfdce..e6df0d2 100644
--- a/nut.spec
+++ b/nut.spec
@@ -3,7 +3,7 @@
  # for set release
  %define release_pre alt
  %define release_base_num 1
-%define release_base_num2 1
+%define release_base_num2 2
  %define release_suff %nil

  # for distr selected
@@ -629,10 +629,17 @@ fi
  %_man3dir/*

  %changelog
-* Mon Feb 09 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.0.M40.1
+* Tue Feb 10 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.1.M40.1
  - NMU
  - Backports to 4.0

+* Tue Feb 10 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.2
+- NMU
+- For backports demonstration.
+
  * Mon Feb 09 2009 Aleksey Avdeev <solo@altlinux.ru> 2.2.2-alt1.1
  - NMU

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]

  reply	other threads:[~2009-02-10  8:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-09 22:51 Aleksey Avdeev
2009-02-09 23:09 ` Dmitry V. Levin
2009-02-09 23:40   ` Aleksey Avdeev
2009-02-10  7:24     ` Eugene Prokopiev
2009-02-10  8:10       ` Aleksey Avdeev [this message]
2009-02-10 14:46         ` Dmitry V. Levin
2009-02-10 14:58           ` Aleksey Avdeev
2009-02-10 15:21             ` Dmitry V. Levin
2009-02-10 16:35               ` Aleksey Avdeev

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=49913672.8010804@solin.spb.ru \
    --to=solo@solin.spb.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