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

Contents of /meta-cvs/F-B3689DBB46386B16F4B2331934B69223

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.147 - (show annotations)
Thu Nov 21 06:15:15 2002 UTC (11 years, 5 months ago) by kaz
Branch: MAIN
Changes since 1.146: +7 -0 lines
Merging from mcvs-1-0-branch.

Some security fixes.  Funny I didn't think of this sooner!

* code/types.lisp (types-read): Make sure *read-eval* is bound to
nil when calling READ.

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

  ViewVC Help
Powered by ViewVC 1.1.5