Debian Codegraph @

winfo/Proposals/log_discussion.shtml

raw
1 <!--#config timefmt="%d-%b-%C%y, %I:%M %p" -->
2 <!--#set var="title" value="Log information discussion" -->
3 <!--#set var="icon" value="acedb.gif" -->
4 <!--#set var="author" value="fw" -->
5 <!--#set var="keywords" value="acedb, source code maintenance, CVS, changelog, log messages, emacs mode" -->
6 <!--#set var="description" value="Discussion about which method to adopt for Acedb source code to log source file changes. " -->
7
8 <!--#exec cgi="/cgi-bin/header" -->
9
10 <H1 ALIGN=CENTER>File changelogs in Acedb source code.</H1>
11
12 <P>In the past we have used a specially programemd mode in emacs
13 to record changelogs in source files. Since using CVS for source
14 code maintenance, we also record messages using CVS. We have now
15 discovered that CVS can automaitcally insert those messages
16 in the file.<BR>
17 This mechanism might render the existing emacs-mode logs obsolete
18 </P>
19
20
21 <H3>The CVS documenation says</H3>
22
23 <P>The CVS documentation mentions a few problems associated with the auto-insertion $Log: log_discussion.shtml,v $
24 <P>The CVS documentation mentions a few problems associated with the auto-insertion Revision 1.1 2000/03/02 14:30:30 edgrif
25 <P>The CVS documentation mentions a few problems associated with the auto-insertion winfo/Proposals/log_discussion.shtml - initial revision created by edgrif
26 <P>The CVS documentation mentions a few problems associated with the auto-insertion approach.</P>
27
28 <OL>
29
30 <LI> while the file is in our system, we can get the log info using cvs log
31 (aprs in our case). Once the file is exported the information might be
32 useless anyhow.
33 <P><STRONG>NOT true</STRONG> in our case - files are often moved back and forth, even
34 between developers with an ineterest in log info.</P>
35 </LI>
36
37 <LI> RCS is not good at handling $Log: log_discussion.shtml,v $
38 <LI> RCS is not good at handling Revision 1.1 2000/03/02 14:30:30 edgrif
39 <LI> RCS is not good at handling winfo/Proposals/log_discussion.shtml - initial revision created by edgrif
40 <LI> RCS is not good at handling info when a branch is merged onto a
41 main track. it may result in conflicts.
42 <P><STRONG>NOT relevant</STRONG> misbehaviuor in our case, as we don't use branches.</P>
43 </LI>
44
45 <LI> people would be able to ammend log info that is inserted in the file,
46 when they are editing the file. people might tend to fix typos or even
47 factual information. As the CVS internal log is not updated, it might
48 result in inconsistencies.
49 <P><STRONG>COULD be a problem</STRONG>, but discipline is required not to amend log info
50 once inserted ion the file.<BR>
51 If the log info gets inserted at the end of the file, we might resits
52 the urge to fix spelling mistakes etc.</P>
53 </LI>
54 </OL>
55
56
57 <H3>My own opinion</H3>
58
59 <H4>Reasons FOR keeping emacs mode logs and CVS logs seperate</H4>
60
61 <P>
62 I quite like the format that is used by the emacs mode. The messages
63 entered have been sparse in the past, but people have been better recently
64 about inserting concise and descriptive message at the file header.
65 These messages often contain important developer information, like
66 function x moved to y, or variable a renamed b etc. whereas the cvs logs
67 should be more verbose and of interest to people that haven't been
68 involved in the development of that particular module (like me, when I'm
69 writing release notes from the cvs logs).
70 </P>
71
72 <DL><DD>
73 <H4>Changeover problems</H4>
74 <P> One of the problems is that all logs up to now are in cvs and
75 not in the files, and although a script could pull out the cvs logs
76 and add them to *EACH and EVERY* file, as if they'd been inserted by
77 cvs in the first place.</P>
78
79 <P> The other problem, is the fact that the emacs headers contain vital
80 information that might not have been logged in the cvs messages. merging
81 them might take up a lot of time.</P>
82
83 <P>I wouldn't agree with a gradual changeover, that leaves the
84 emacs logs at the top, but now continues with the cvs insertion.
85 Acedb suffers too much already from gradual changeovers that have
86 never been completed and were never done 'all the way'.</P>
87 </DD></DL>
88
89 <H4>Reasons AGAINST emacs logs and FOR cvs logs only</H4>
90
91 <P>The format of the CVS log insertions is quite nice also. This is an example :</P>
92
93 <PRE>
94 /*
95 * $Log: log_discussion.shtml,v $
96 * Revision 1.1 2000/03/02 14:30:30 edgrif
97 * winfo/Proposals/log_discussion.shtml - initial revision created by edgrif
98 *
99 * Revision 1.5 1998/10/14 09:17:07 fw
100 * did something
101
102 *
103 * Revision 1.4 1998/10/14 09:12:58 mieg
104 * small changes bla bla
105 *
106 * Revision 1.3 1996/05/09 15:16:47 rd
107 * Fixed function xx()
108 *
109 ....
110 */
111 </PRE>
112
113 <OL>
114 <LI>They take up more space, but when inserted at the end they would be
115 managable.
116 </LI>
117
118 <LI>People might think more about what they put in the log, as it will be
119 added to the file itself (i.e. it becomes more visible) not just some
120 anonymous system that has to be prompted to show the logs.
121 </LI>
122
123 <LI>Not everybody uses emacs or has this mode file available. Using cvs
124 logs would be truly cross-platform & cross-editor. (I'm thinking of
125 rbrusk and windows here).
126 </LI>
127
128 <LI>If the file is simply renamed, CVS truncates the log at the point
129 when the renaming took place and just refers to the old name where
130 the rest of the log is. But the log insertion in the file would
131 continue in a linear fashion and it would not suffer from that.
132 <BR>
133 It would also make 'aprs' or 'cvs log' absolete, because one can just
134 'more' the file or open it in emacs (whilst one is editing it anyway)
135 to get access to the logs.
136 </LI>
137
138 <LI>Once the changeover has been completed (as described above - no
139 half-baked jobs please). All the logs would be at the bottom, every
140 file could contain a proper header at the top, and go straight to the
141 code. This would make the files look a lot cleaner when browsing
142 through code.
143 <BR>
144 We also wouldn't need the /**** end of file ****/ lines at the end of
145 each file. The end would be marked by the start of the log section.
146 </LI>
147
148 </OL>
149
150 <H3>Fred's Summary</H4>
151
152 <P>I am in favour of a changeover, but it certainly required a lot of work.
153 Most of that work would be to merge emacs log with cvs logs, which might
154 be tediuos in some cases.</P>
155
156 <P>While we do that cleaning up the headers of some source files would be
157 nice, as some are badly cluttered with stuff that should be thought about
158 again and/or move to private header files.</P>
159
160 <P>During the changeover, we would also have to touch *EVERY* file in the CVS
161 system, and might gather a better idea of what is there and how to pull it
162 together better or how to modularise it better.</P>
163
164 <P>If we agree, that the CVS log mechanism should be adopted, we only have to
165 problem to decide whether it is worth investing the time to do the
166 changeover properly. I think we'd all benefit from it. Changelogs are a
167 good idea, so we should make best use of them.</P>
168
169
170
171
172 <!--#exec cgi="/cgi-bin/footer" -->