summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20110211/002531.html
blob: 2d52761f602ea3e49742aa58bc11ef1c94403d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] packages branches and revision numbers	when	submiting packages with mgarepo
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20packages%20branches%20and%20revision%0A%20numbers%09when%09submiting%20packages%20with%20mgarepo&In-Reply-To=%3C4D54AF4F.8000000%40iki.fi%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="002530.html">
   <LINK REL="Next"  HREF="002533.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] packages branches and revision numbers	when	submiting packages with mgarepo</H1>
    <B>Anssi Hannula</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20packages%20branches%20and%20revision%0A%20numbers%09when%09submiting%20packages%20with%20mgarepo&In-Reply-To=%3C4D54AF4F.8000000%40iki.fi%3E"
       TITLE="[Mageia-dev] packages branches and revision numbers	when	submiting packages with mgarepo">anssi.hannula at iki.fi
       </A><BR>
    <I>Fri Feb 11 04:38:55 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="002530.html">[Mageia-dev] [Mageia-sysadm] [496] update version in Makefile
</A></li>
        <LI>Next message: <A HREF="002533.html">[Mageia-dev] Caution about using src.rpm from mdv since today
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2531">[ date ]</a>
              <a href="thread.html#2531">[ thread ]</a>
              <a href="subject.html#2531">[ subject ]</a>
              <a href="author.html#2531">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Sorry for the delay.

On 29.01.2011 16:30, nicolas vigier wrote:
&gt;<i> On Sat, 29 Jan 2011, Anssi Hannula wrote:
</I>&gt;<i> 
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> AFAICS the above branch scheme doesn't work well with changelog
</I>&gt;&gt;<i> generation. As changelog is generated from [packagename]/releases, one
</I>&gt;&gt;<i> of two things seems bound to happen:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> a) There is no [packagename]/releases under the branch, and the
</I>&gt;&gt;<i> changelog gets messed up (all commits since initial package import in a
</I>&gt;&gt;<i> single release entry), or
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> b) One tries to keep [packagename]/releases to preserve sane changelog
</I>&gt;&gt;<i> when branching, but this will fail as this SVN command is invalid, as
</I>&gt;&gt;<i> one can't copy a directory into itself:
</I>&gt;&gt;<i> svn cp /packages/cauldron/[packagename]
</I>&gt;&gt;<i> /packages/cauldron/[packagename]/branches/[branchname]
</I>&gt;<i> 
</I>&gt;<i> Good question. I have looked at how it is working now :
</I>&gt;<i>  - it first looks at all svn logs from [packagename]/releases, and
</I>&gt;<i>    extract infos from &quot;%repsys markrelease&quot; logs, which contains
</I>&gt;<i>    infos about packages version, release, and relrevision.
</I>&gt;<i>  - it use commit logs from [packagename]/current and groups them by
</I>&gt;<i>    package releases using the infos from markrelease.
</I>&gt;<i> 
</I>&gt;<i> So I think we can do this :
</I>&gt;<i>  - We don't copy releases directory in branches, only SPECS and SOURCES
</I>&gt;<i>    directories, we share the releases directory for current and branches.
</I>&gt;<i>  - In &quot;%repsys markrelease&quot; commits, we include the branch name
</I>&gt;<i>  - When generating logs for a branch package we only use markrelease
</I>&gt;<i>    infos from that branch, and from current from before the first
</I>&gt;<i>    markrelease for the branch
</I>&gt;<i>  - When generating logs for current package, we ignore markrelease from
</I>&gt;<i>    other branches
</I>&gt;<i> 
</I>&gt;<i> Does it look ok ?
</I>
What if branches are moved / branched to other branches?

Also, that won't preserve the changelogs of branches when they are
merged back (not 100% sure if that is wanted, though).

-- 
Anssi Hannula
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002530.html">[Mageia-dev] [Mageia-sysadm] [496] update version in Makefile
</A></li>
	<LI>Next message: <A HREF="002533.html">[Mageia-dev] Caution about using src.rpm from mdv since today
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2531">[ date ]</a>
              <a href="thread.html#2531">[ thread ]</a>
              <a href="subject.html#2531">[ subject ]</a>
              <a href="author.html#2531">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>