Sergey Poznyakoff
cac45fffc5
Rewrite update algorithm.
...
* src/common.h (namebuf_t): New typedef.
(namebuf_create, namebuf_free)
(namebuf_name): New prototypes.
(remname): New prototype.
* src/misc.c (struct namebuf): New structure.
(namebuf_create, namebuf_free)
(namebuf_name): New functions.
* src/create.c (dup_dir0): Remove is_avoided_name
checks. This is taken care of in update_archive.
* src/incremen.c (scan_directory): Use namebuf
to produce full file names.
* src/names.c (nametail): Remove extra level of
indirection. All uses updated.
(avoided_name_table, add_avoided_name)
(is_avoided_name): Remove.
* src/update.c (update_archive): Change algorithm.
Instead of adding unmodified files to the avoided_name
table, create namelist so that it contains only
modified files.
* tests/Makefile.am: Add update01.at, update02.at
* tests/testsuite.at: Likewise.
* tests/update.at (AT_KEYWORDS): Add update00.
2009-10-14 23:26:52 +03:00
..
2008-03-06 08:17:33 +00:00
2009-03-07 16:30:44 +02:00
2007-06-27 13:30:12 +00:00
2009-10-04 23:38:34 +03:00
2007-06-27 13:30:12 +00:00
2008-07-31 07:12:50 +00:00
2009-08-05 10:38:50 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-08-27 20:12:14 +03:00
2009-08-08 22:33:16 +03:00
2009-08-08 19:53:54 +03:00
2009-08-08 19:53:54 +03:00
2009-10-07 16:42:06 +03:00
2008-06-26 06:32:25 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-08-07 14:52:55 +03:00
2009-08-07 14:52:55 +03:00
2009-08-13 16:45:49 +03:00
2009-08-13 16:45:49 +03:00
2008-07-31 07:12:50 +00:00
2007-06-27 13:30:12 +00:00
2009-07-30 23:49:32 +03:00
2009-07-30 23:49:32 +03:00
2009-07-30 23:49:32 +03:00
2009-08-07 14:52:55 +03:00
2009-08-07 14:52:55 +03:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2008-06-26 06:32:25 +00:00
2008-06-26 06:32:25 +00:00
2007-06-27 13:30:12 +00:00
2009-10-14 23:26:52 +03:00
2009-08-07 14:52:55 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2008-06-14 10:17:14 +00:00
2008-07-31 07:12:50 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-05-25 10:18:59 +03:00
2007-06-27 13:30:12 +00:00
2009-10-14 17:55:15 +03:00
2009-10-14 17:55:15 +03:00
2009-08-07 14:52:55 +03:00
2009-08-07 14:52:55 +03:00
2009-08-07 14:52:55 +03:00
2008-07-31 07:12:50 +00:00
2008-07-31 07:12:50 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2009-05-25 10:18:59 +03:00
2008-02-08 10:32:15 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2008-10-22 20:55:35 +00:00
2009-05-25 10:18:59 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-10-04 07:16:39 +00:00
2009-10-14 23:26:52 +03:00
2009-08-08 19:53:54 +03:00
2009-10-14 23:26:52 +03:00
2009-10-14 23:26:52 +03:00
2009-10-14 23:26:52 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-05-25 10:18:59 +03:00
2007-06-27 13:30:12 +00:00
2009-08-27 20:12:14 +03:00