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

Contents of /meta-cvs/F-B3689DBB46386B16F4B2331934B69223

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.154 - (show annotations)
Sun Jan 12 20:52:31 2003 UTC (11 years, 3 months ago) by kaz
Branch: MAIN
Changes since 1.153: +6 -0 lines
Merging from mcvs-1-0-branch.

Hard link sync optimization.

* code/mapping.lisp (mapping-synchronize): New optional parameter,
specifies map to use instead of reading *map-local*.

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

  ViewVC Help
Powered by ViewVC 1.1.5