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

  ViewVC Help
Powered by ViewVC 1.1.5