/[meta-cvs]/meta-cvs/F-B3689DBB46386B16F4B2331934B69223
ViewVC logotype

Contents of /meta-cvs/F-B3689DBB46386B16F4B2331934B69223

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.127.2.42 - (show annotations)
Wed Feb 26 03:53:28 2003 UTC (11 years, 1 month ago) by kaz
Branch: mcvs-1-0-branch
Changes since 1.127.2.41: +4 -0 lines
* code/unix-bindings/wrap.c (mcvs_spawn): One more waitpid() bug!
The SIGCHLD signal handler was being set in the child process only,
so although we fixed the waitpid() behavior in the CVS child
process, we did not fix it in the Meta-CVS process. The ECHILD
problem was sporadically reproduced by Johannes Grødem on a fast
Athlon machine; it requires CVS to exit before Meta-CVS reaches
the waitpid() call.
1 Release Notes for Meta-CVS
2
3 Release 1.0.5, 2003-0?-??:
4
5 Bugfix: some one-argument command line options of CVS must be
6 specifies as a single parameter, with no separation between the
7 option letter and the argument characters. For example:
8
9 cvs log -r rev-1::rev-2 # invalid
10 cvs log -rrev1::rev2 # correct
11
12 Meta-CVS accepts either syntax, but it was generating the first form
13 when calling CVS. Now, *all* one-letter options that have an argument
14 are formatted in the second manner.
15
16 Bugfix: one more waitpid() issue was fixed; on fast machines, under
17 Linux, it was observed that from time to time Meta-CVS would get
18 a -1/ECHILD when waiting for the CVS process.
19
20 Release 1.0.4, 2003-02-20:
21
22 Fix remaining occurences of the CVS ``No child processes'' abort
23 problem, affecting the list-branches command, merge command
24 and the -r option of the filt command.
25
26 Release 1.0.3, 2003-02-12:
27
28 ! THIS RELEASE IS WITHDRAWN. It was accidentally created from the
29 ! experimental main trunk of the Meta-CVS codebase, rather than
30 ! the 1.0 branch. But 1.0.4 does contain all of the changes
31 ! described here.
32
33 Fix for the CVS ``No child processes'' abort problem. It turns out
34 that CLISP sets the signal handling action for the SIGCHLD signal
35 to SIG_IGN, which is inherited by child processes across the
36 fork() and execvp() calls used in our mcvs_spawn() function.
37 We correct the problem by resetting the signal handler to SIG_DFL
38 just before executing the new process image.
39
40 New feature, --up option. The argument is a nonnegative integer value
41 (default is zero) which specifies how many sandbox nesting levels to
42 escape out of when locating the sandbox root. This helps work with
43 nested Meta-CVS sandboxes.
44
45 Release 1.0.2, 2003-02-10:
46
47 Bugfix in waitpid logic in the C library for running external processes;
48 we were not dealing with an interrupted waitpid.
49
50 Behavior of mcvs tag is changed: when there are no filename arguments,
51 the whole tree is tagged including the metafiles. In other words, it
52 now works like the commit command.
53
54 Release 1.0.1, 2003-01-30:
55
56 Hard link sync optimization: update of a subset of files, commit, and
57 other operations like log and diff don't need to synchronize all
58 hard links, just the ones operated on.
59
60 The merge and remerge commands support -k option for overriding
61 CVS keyword expansion mode.
62
63 Fixes to getcwd error handling.
64
65 Improvement in install.sh script's logic for locating CLISP installation
66 directory.
67
68 Release 1.0, 2003-01-01:
69
70 NOTE: It's not possible to upgrade to this release via mcvs-upgrade,
71 because it adds some new C functions to the Lisp executable.
72
73 Security fix: read-time evaluation was not suppressed when reading
74 structured data, like MCVS/MAP and MCVS/TYPES. This means that it
75 was possible for Alice to check in something that would execute
76 arbitrary code on Bob's computer.
77
78 Optimization: use fork and exec to launch CVS rather than CLISP's
79 run-program function, which indirects through the shell interpreter.
80 (On Cygwin, the spawnvp function is used).
81
82 Performance fix: stat() was being called superfluously by the
83 hard synchronization code, twice for each file.
84
85 Build fix: install.sh works when CLISP executable is called ``lisp.exe'',
86 which is the case under Cygwin with newer CLISP releases.
87
88 Release 0.99, 2002-11-17:
89
90 New link command for creating symbolic links.
91
92 Global option -n (dry run---don't modify filesystem) is processed
93 internally now, not just passed to CVS.
94
95 Failure to invoke text editor is handled.
96
97 The -r option of filt is fixed; it has been broken since the change to the
98 new MAP format, because it was reading the raw map representation, not
99 passing it through the right conversion steps that are needed now.
100
101 Bugfix to purge and remap commands: they were fooled by CVS-generated
102 files in the MCVS/CVS directory. Specifically, files having F- names, and a
103 the suffix ,t.
104
105 Bugfix to add logic in directory restructuring: there was the possibility
106 of mistakingly taking a clobbered local file to be a new local version of
107 the added file, instead of replacing it. This could happen if the local
108 file had a future timestamp relative to the one coming from the repository.
109
110 The prop command does not synchronize or write out map if no options are
111 specified.
112
113 Help text added for move and branch commands. Help text for grab rewritten.
114
115 The CVSEDITOR and VISUAL environment variables are now checked, not
116 only EDITOR.
117
118 Release 0.98, 2002-10-13:
119
120 The prop command was mistakenly reading from MAP-LOCAL and writing to MAP,
121 which could cause information loss if the two differ. It now reads from MAP
122 and writes to MAP. (The property changes propagate to MAP-LOCAL by the
123 update operation invoked by prop, as before).
124
125 Invocation of external programs included in debug trace.
126
127 The filt command does not filter F- names if they are immediately preceded by
128 the MCVS/ prefix; such occurences are clearly concrete, sandbox-relative
129 references to the actual F- links, rather than abstract references.
130
131 The update command now supports the -C option, to fetch the repository
132 copy, throwing away local changes. It also now honors the --metaonly
133 and --nometa options.
134
135 The export command has been added, for checking out documents without creating
136 a working copy (no MCVS directory in the root of the checkout).
137
138 The watch command has been added. Note that its syntax differs from that
139 of CVS.
140
141 The watchers, editors, edit, and unedit commands have been added.
142
143 A script called mcvs-upgrade is now included, and installs alongside the mcvs
144 script. This allows the Meta-CVS Lisp image to recompile and patch itself,
145 giving users of binary distributions an easy way to upgrade from source
146 code.
147
148 Release 0.97, 2002-10-06:
149
150 Meta-CVS now builds and runs on Microsoft Windows, under Cygwin
151 (www.cygwin.com). It still relies on hard links, which requires
152 Windows 2000 or XP, and the NTFS filesystem. It probably won't
153 work over FAT.
154
155 New --debug option for verbose output.
156
157 Cleaned up of error messages. Error messages don't specify prefixes like
158 ``mcvs-add:'' or ``mcvs-grab:'' any more. Rather, the error handler adds the
159 ``mcvs:'' prefix when printing the messages in a situation when the error is
160 not continuable.
161
162 Fixed bug introduced in release 0.13: mcvs add -R was adding only
163 directories, effectively ignoring arguments that are regular files.
164 The error-continuation behavior of mcvs add has been revised.
165
166 Trying to rename an object onto itself, or to move the sandbox root
167 directory are no longer silent no-ops, but produce an error.
168
169 The remap command now preserves property lists, and picks up changes
170 in executable permission.
171
172 The grab command now notices when a file changes from having execute
173 permission to not having execute permission.
174
175 Operations on the path . now work in a partial sandbox.
176
177 Release 0.96, 2002-09-21:
178
179 The restore command was left broken during the change to the new
180 filemap format. It is now fixed.
181
182 The grab command now handles execute permission bits properly.
183
184 Some more commands have detailed help.
185
186 There is now a global option -i which specifies a script to be
187 executed. This allows Meta-CVS to be scripted using Lisp. For
188 instance suppose you have the following script and call it
189 list-matching:
190
191 #!/usr/local/bin/mcvs -i
192 (in-sandbox-root-dir
193 (let ((mapping (mapping-read *mcvs-map*))
194 (test-func (eval (read-from-string (pop *args*)))))
195 (dolist (entry mapping)
196 (with-slots (path raw-plist) entry
197 (when (funcall test-func raw-plist)
198 (format t "~a~%" path))))))
199
200 Then to list the names of files whose "importance" property is
201 a value greater than two, run:
202
203 ./list-matching '(lambda (plist)
204 (let ((imp (getf plist :importance)))
205 (and imp (> imp 2))))'
206
207 WARNING: Scripting accesses the guts of Meta-CVS directly, so scripts may
208 break as Meta-CVS is maintained. There is currently no published set of
209 stable interfaces.
210
211 Release 0.95, 2002-09-16:
212
213 The install.sh script no longer uses a borrowed copy of the clisp-link script
214 or the linkkit directory; these have been removed. These materials
215 are available at every CLISP installation; install.sh now finds them
216 and uses them. Users of non-x86 machines ran into problems because of this
217 because linkkit/clisp.h contains architecture-dependent information.
218
219 A bug in mcvs filt was fixed; it wasn't handling F- names that aren't found
220 in the map.
221
222 A more detailed help system now exists, though it's not complete. The ``mcvs
223 help'' command acts just like ``mcvs --help'' without any arguments. If given
224 an additional parameter which specifies a Meta-CVS command, it produces more
225 detailed documentation for that comand. Help exists already for a few
226 commands.
227
228 The release number is being warped to 0.95, which means that Meta-CVS is now
229 in beta. It is only five updates away from a 1.0 release.
230
231 Release 0.24, 2002-09-08:
232
233 The mapping entries for both symlinks and files have extensible property
234 lists now. These are stored in the optional fourth and fifth list elements,
235 respectively of the :FILE and :SYMLINK map entries.
236
237 Versioning of the execute permission of files is supported, represented as
238 the :EXEC property of a :FILE mapping entry.
239
240 Some lame syntax is provided for manipulating properties:
241
242 mcvs prop --set foo --clear bar --remove baz main.c list.c
243
244 will set the property FOO to true, set the property BAR to false,
245 and remove the property BAZ, in the files main.c and list.c.
246 The execute permission is represented by the property EXEC.
247
248 Release 0.23, 2002-09-02:
249
250 Bugfix: the grab command notices edited symlinks and incorporates the
251 changes into the mapping.
252
253 The grab command now figures out moved symlinks. Moved symlinks are those
254 whose pathname has changed, but which continue to point to the same object
255 (which may also have been moved).
256
257 Release 0.22, 2002-08-31:
258
259 Symbolic links are now versioned objects. The format of the MAP file
260 changes to accomodate this; the new Meta-CVS will read old MAP
261 files; when it writes it will write the new format. Old Meta-CVS won't
262 read the new format.
263
264 When a new module is created from an existing file tree, symbolic
265 links will be recognized and added. The add command will also add
266 symbolic links. Symbolic links can be renamed and moved; this does
267 nothing with their contents. They can point outside of the sandbox
268 using relative or absolute paths.
269
270 TODO:
271
272 There doesn't exist yet a special command to create symbolic links, nor to
273 retarget them; retargetting a link can be done manually by editing MCVS/MAP
274 and updating. Retargetting a link using the ln -s command, won't
275 backpropagate to the MAP file; an update will clobber the link.
276
277 The grab command does not yet compute symbolic link moves; a moved symbolic
278 link is treated as a remove and add. This will be easy to fix.
279
280 The remap command ignores symlinks.
281
282 Release 0.21, 2002-08-04:
283
284 Syntax of grab command changed. The branch is no longer specified as an
285 argument, but using the -r command option. If no revision is specified with
286 -r, then a -A must be specified to make the grab go to the main trunk. This
287 is a safety feature, since grabbing foreign snapshots to the trunk is almost
288 always wrong, though it could be useful during backup recovery, or for fixing
289 mistakes.
290
291 The way operating system functions are targetted has changed. Instead of
292 relying on the ``linuxlibc6'' module provided by CLISP, Meta-CVS now
293 has its own module for calling foreign functions. This module is portable;
294 it does not depend on the layout of glibc data structures. So Meta-CVS
295 is in theory now portable to other Unixes (provided they have /dev/urandom).
296
297 Release 0.20, 2002-07-27:
298
299 The commit command does a true global commit when given no file or directory
300 parameters, and not given the --metaonly option. This means commiting all
301 changes in the MCVS directory, even if they are in F-files that are not
302 currently mapped.
303
304 Release 0.19, 2002-07-16:
305
306 When moving multiple files or directories to a subdirectory, a
307 restart is now provided to skip over bad ones and continue.
308
309 Grab no longer scans files if there are only added files, or only removed
310 files. There are no moves to deduce in that case.
311
312 Restore properly creates lost+found at the root of a partial sandbox,
313 rather than at the abstract root of the module.
314
315 Some other algorithmic improvements made.
316
317 The first few sections of a user guide have been written.
318
319 Release 0.18, 2002-07-07:
320
321 Cool new feature: checkout takes an extra argument, which specifies a
322 subdirectory of the project. Specifying a subdirectory results in a ``partial
323 sandbox'', whose root directory is the specified subdirectory of the larger
324 project. The rest of the project is ``invisible'' to that sandbox. A
325 subdirectory argument can also be given to mcvs grab, which will cause it to
326 integrate the new source tree against a subtree of the Meta-CVS project
327 rather than the entire project. The subtree doesn't have to exist; in
328 that case you get an empty sandbox. Adding files to this sandbox will cause
329 the tree to exist in the project.
330
331 Bugfix: mcvs grab was not computing moves properly over small file sets,
332 wrongly treating them as removes and adds.
333
334 Release 0.17, 2002-07-02:
335
336 The create command no longer takes a vendor branch. Instead the symbol
337 ``Created-by-Meta-CVS'' is used as the vendor tag to satisfy CVS.
338
339 The grab command no longer does useless synchronization on files that
340 are about to be deleted.
341
342 New purge command; does ``cvs rm'' on deleted files, that is to say, F- files
343 that have no mapping.
344
345 New restore command; re-enters deleted files into the mapping, under
346 the ``lost+found'' directory, using their F- names as sandbox names.
347
348 Bugfix: when a checkout bails because it is requested over top of an existing
349 working copy, it must not delete that working copy's MCVS sub directory.
350
351 Release 0.16, 2002-06-29:
352
353 Added new heuristics to grab command. Paths are analyzed to determine
354 move distance. Greater distances reduce the confidence in a move.
355 These rules help sort out grabs in a project where similar or
356 duplicate files are subject to parallel moves, the ambiguity being
357 resolved by favoring shorter moves. Word comparisons are case-insensitive
358 now. Common words (those that appear in many files) are ignored when
359 comparing files.
360
361 New options, --meta and --metaonly. This area of Meta-CVS is cleaned
362 up a little bit. Most reporting commands like log or diff no longer
363 operate on meta files by default; they must be explicitly told to do
364 so with --meta or --metaonly. Only the commit command implicitly includes
365 metafiles by default, and so if this is not wanted, --nometa must be
366 selected. The update command remains special; if it is given file
367 arguments, it does not include meta files. If given no arguments, it
368 does a global CVS up across the entire project.
369
370 Release 0.15, 2002-06-25:
371
372 Optimized a string splitting routine which is used heavily for processing
373 paths; the result is a noticeable performance improvement in some commands
374 that process large numbers of files.
375
376 Renamed ``import'' command to ``create''.
377
378 Bugfix: checkout and create showed errors when removing directory, due to
379 broken :postorder support in directory walking function.
380
381 Bugfix: on failure, checkout was failing to delete the MCVS directory when
382 the checkout was directed to an existing directory.
383
384 New feature: ``mcvs grab'' command imports third-party snapshots to a
385 branch. This is invoked in the root directory of the source tree to import.
386 It determines what files have been added and removed in the snapshot, and
387 tries to compute which removes and adds are actually moves. This is done by
388 analyzing the actual contents of the files according to a crude algorithm to
389 do fuzzy comparisons, so that even files which were modified as well as moved
390 are discovered.
391
392 Release 0.14, 2002-06-21:
393
394 Bugfix: mcvs add was broken for files that have no suffix, causing
395 the underlying cvs add to fail. This was broken in 0.7 when type
396 handling was added.
397
398 Release 0.13, 2002-06-06:
399
400 Sandbox synchronization now handles the case of two files having
401 the same timestamp. An error is signaled, with interactive resolution
402 to synchronize either way, or do nothing.
403
404 If a file must be deleted on update, and this cannot be done, it
405 is now a continuable error.
406
407 Bugfix: pass -I ! to cvs import so that it won't ignore some F- files
408 whose suffix is one of the ones cvs ignores by default.
409
410 New command: mcvs remap. The user can move or delete files directly without
411 going through Meta-CVS. When mcvs remap is invoked, it will hunt down the
412 moves and deletions, and reconstruct the mapping accordingly; that is,
413 it remaps the new structure. This command uses inode numbers to identify
414 files; if a file is copied and then the original is deleted, that won't
415 be recognized as a move.
416
417 Release 0.12, 2002-04-18:
418
419 Bugfix: remove was broken in 0.10, fixed now.
420
421 Bugfix: status, diff, etc. work in empty project rather than complaining
422 ``. not known to Meta-CVS''.
423
424 The checkout operation now can now populate an existing directory, including
425 the current working directory (mcvs co -d . modulename). Of course, the
426 target directory cannot be an existing Meta-CVS sandbox.
427 This is a useful feature, which allows sandboxes to blend with an
428 existing directory structure.
429
430 Checkout now uses the same function for generating the sandbox
431 structure as does update. This is now necessary, because local files
432 can be clobbered by the checkout.
433
434 Release 0.11, 2002-04-12:
435
436 Bugfix: when branch invokes rtag, it now takes the CVSROOT information
437 from CVS/Root and passes it via -d. This is necessary because rtag does not
438 look at a local CVS subdirectory for this information, only the
439 -d option or the environment variable.
440
441 Command for listing branches added (list-branches or lb). Also shows
442 what sticky tag the sandbox is updated to.
443
444 Command for switching branches added (switch or sw).
445
446 Merge detects that working copy is on non-branch tag and bails.
447
448 Absolute paths can now be specified as file arguments. These are
449 based from the root directory of the sandbox, not the actual filesystem root
450 directory.
451
452 Release 0.10, 2002-04-03:
453
454 Automatic merging implemented. Branch is created using branch command,
455 and merging from another branch is done using simple merge command.
456 Meta-CVS maintains the tags to keep track of what has been merged
457 from what branch to what branch.
458
459 Bugfix: checkout -d foo bar was complaining about directory bar already
460 existing, even though it should only care about foo.
461
462 The remove command now requires explicit -R option to recursively remove
463 a directory. It has more detailed error reporting.
464
465 The move command has better error reporting.
466
467 Release 0.9, 2002-03-14:
468
469 Bugfix: the .cvsignore file is now subject to tagging, status, etc,
470 (unless --nometa is specified, of course).
471
472 The mcvs filt command takes -r <revision> or -D <date> parameters.
473 This means to retrieve the MAP file as of the specified revision or
474 date and use that mapping to perform the filtering translation,
475 rather than using MAP-LOCAL.
476
477 The mcvs update command takes filename arguments now and also
478 supports the -p option.
479
480 Release 0.8, 2002-03-13:
481
482 Bug fixed in mcvs add; it was not ignoring files that are already
483 listed as :ignore in MCVS/TYPES.
484
485 Bug fixed in mcvs move: a target with a trailing slash is now treated
486 as a directory (if it does not already exist and is a non-directory).
487
488 The -d option of mcvs checkout can now be used to override the checkout
489 directory, which is normally the same as the module name.
490
491 The global options --version, --help, -q, -Q and -e are now supported.
492
493 New global options --error-continue and --error-terminate to disable
494 interactive error handling in two different ways.
495
496 Log level of many messages has changed; many messages have been
497 relegated to debug level.
498
499 The import command now creates a .cvsignore file containing the name
500 MAP-LOCAL.
501
502 Release 0.7, 2002-03-09:
503
504 The import command collects a list of the file suffixes and brings up
505 a text editor to allow the user to edit their CVS keyword expansion
506 behavior. This information is kept in a new metafile called TYPES. The
507 add command also updates TYPES; it identifies any suffixes which are new,
508 and brings up an editor. The F- files now carry suffixes, which
509 simplifies interfacing with CVS, and also allows cvswrappers to work.
510
511 Recursive add works (mcvs add -R ...).
512
513 New command line option --nometa allows metafiles to be excluded from
514 diff, tag, and other commands; without the option they are inserted
515 into the list of files to be processed.
516
517 The commit option now takes an optional list of files or directories,
518 just like tag, diff, and others.
519
520 Release 0.6, 2002-02-16:
521
522 The add operation was horribly broken in 0.5, it is fixed.
523
524 User can interactively select whether to clobber local files or leave
525 everything alone. Effects on the mapping file of a mcvs move are undone,
526 if the restructuring is rolled back, or raises a condition that leads
527 to termination.
528
529 Meta-CVS now keeps a new meta-file called MCVS/TYPES. This is created
530 during import, and specifies the CVS keyword expansion mode for files
531 having given suffixes, and can also tell Meta-CVS to ignore certain files
532 when importing or adding.
533
534 Release 0.5, 2002-02-10:
535
536 Much improved error handling. Filesystem rearranging code performs
537 sanity checks to prevent adds and moves from accidentally clobbering
538 local files. A rearranging gone bad can be rolled back. Effects
539 of a failed mcvs add can also be rolled back.
540
541 MAP-LOCAL is now sorted in the same way as MAP.
542
543 Release 0.4, 2002-02-04:
544
545 CVS is invoked using internal function resembling the xargs utility,
546 which ensures that multiple command lines are generated if necessary to
547 avoid surpassing the operating system limit on argument and environment
548 vector size. This is important when someone wants to diff or stat a
549 subdirectory, which requires Meta-CVS to pick out the individual files
550 at the CVS level.
551
552 The tag, log, status and annotate commands are now available.
553
554 The MAP file is sorted on F- file names now, not path names. This
555 improves merging, since files do not move within the file when
556 they are renamed.
557
558 Release 0.3, 2002-02-02:
559
560 Process termination done is properly in top level handler, by a nonlocal
561 exit. The program properly indicates failed termination when it exits
562 due to an error condition.
563
564 Corrections are made in the command line option processing. If z is an
565 option that takes an argument, and the argument is -zx, then x is
566 treated as the argument to the option. Long options arguments are
567 recognized properly, according to the --opt=arg convention. The option
568 processing is restructured. Most of the commands now take the
569 appropriate cvs command-specific options.
570
571 The update algorithm performs dupe checking over the map, which could
572 happen during a merge.
573
574 Some more bugfixing has been done to the move command. It was still not
575 handling right some cases of an unversioned file being clobbered. Also,
576 it wasn't renaming a directory containing just one file.
577
578 I did some performance investigation for larger file sets, and
579 ended up rewriting the code that computes filesystem restructuring
580 changes and map duplicates.
581
582 Release 0.2, 2002-01-30:
583
584 Changed official name from MCVS to Meta-CVS. The move command now
585 performs some filesystem tests so it does the right thing when a versioned
586 file is moved over a non-versioned file, or when a file is moved into
587 a directory not known to Meta-CVS. Factored out reading and writing of
588 map files into functions.
589
590 Release 0.1, 2002-01-28:
591
592 Support for mcvs diff -u added. The -R option works for mcvs add command.
593 Bug fixed in mcvs mv command; it wasn't working analogously to the Unix
594 mv command when copying a directory to an existing directory.
595
596 Release 0.0, 2002-01-27:
597
598 This is alpha software. It is not complete, and lacks documentation.
599 However, it is already usable in its present state and is being used for
600 version control by its author. If you can program in Common Lisp and would
601 like to help, take a look through the TODO file. Send me patches, ideas,
602 feature requests.

  ViewVC Help
Powered by ViewVC 1.1.5