Artifact b261253ccef6558a1bcf5a653efa9687b1fa5b02:
Wiki page
[Import CVS Repositories]
by
anonymous on
2007-12-04 20:24:13.
0000: 44 20 32 30 30 37 2d 31 32 2d 30 34 54 32 30 3a D 2007-12-04T20:
0010: 32 34 3a 31 33 0a 4c 20 49 6d 70 6f 72 74 5c 73 24:13.L Import\s
0020: 43 56 53 5c 73 52 65 70 6f 73 69 74 6f 72 69 65 CVS\sRepositorie
0030: 73 0a 50 20 65 66 61 66 30 36 61 35 36 61 32 62 s.P efaf06a56a2b
0040: 32 33 31 39 33 33 38 33 63 64 63 34 34 32 66 62 23193383cdc442fb
0050: 62 33 37 31 66 61 32 32 34 38 30 65 0a 55 20 61 b371fa22480e.U a
0060: 6e 6f 6e 79 6d 6f 75 73 0a 57 20 32 35 38 30 0a nonymous.W 2580.
0070: 53 70 69 72 69 74 75 61 6c 20 61 6e 63 65 73 74 Spiritual ancest
0080: 6f 72 3a 20 5b 68 74 74 70 3a 2f 2f 63 76 73 32 or: [http://cvs2
0090: 73 76 6e 2e 74 69 67 72 69 73 2e 6f 72 67 2f 7c svn.tigris.org/|
00a0: 63 76 73 32 73 76 6e 5d 2e 0d 0a 0d 0a 53 69 6d cvs2svn].....Sim
00b0: 69 6c 61 72 69 74 69 65 73 3a 0d 0a 20 20 2a 20 ilarities:.. *
00c0: 20 55 73 69 6e 67 20 69 64 65 6e 74 69 63 61 6c Using identical
00d0: 20 68 69 67 68 6c 65 76 65 6c 20 61 72 63 68 69 highlevel archi
00e0: 74 65 63 74 75 72 65 20 28 70 61 73 73 2d 62 61 tecture (pass-ba
00f0: 73 65 64 29 0d 0a 20 20 2a 20 20 55 73 69 6e 67 sed).. * Using
0100: 20 73 6f 6d 65 20 73 70 65 63 69 66 69 63 20 61 some specific a
0110: 6c 67 6f 72 69 74 68 6d 73 20 28 67 72 61 70 68 lgorithms (graph
0120: 20 74 72 61 76 65 72 73 61 6c 29 2e 0d 0a 0d 0a traversal).....
0130: 44 69 66 66 65 72 65 6e 63 65 73 3a 0d 0a 20 20 Differences:..
0140: 2a 20 20 4e 6f 74 20 75 73 69 6e 67 20 61 6e 79 * Not using any
0150: 20 63 6f 64 65 20 28 44 69 66 66 65 72 65 6e 74 code (Different
0160: 20 6c 61 6e 67 75 61 67 65 73 20 66 6f 72 20 6f languages for o
0170: 6e 65 20 74 68 69 6e 67 2c 20 5b 68 74 74 70 3a ne thing, [http:
0180: 2f 2f 77 77 77 2e 70 79 74 68 6f 6e 2e 6f 72 67 //www.python.org
0190: 2f 7c 50 79 74 68 6f 6e 5d 20 74 68 65 72 65 2c /|Python] there,
01a0: 20 5b 68 74 74 70 3a 2f 2f 77 77 77 2e 74 63 6c [http://www.tcl
01b0: 2e 74 6b 2f 7c 54 63 6c 5d 68 65 72 65 2e 29 2e .tk/|Tcl]here.).
01c0: 0d 0a 20 20 2a 20 20 50 65 72 73 69 73 74 65 6e .. * Persisten
01d0: 74 20 73 74 61 74 65 20 63 6f 6d 70 6c 65 74 65 t state complete
01e0: 6c 79 20 64 69 66 66 65 72 65 6e 74 2c 20 75 73 ly different, us
01f0: 69 6e 67 20 5b 68 74 74 70 3a 2f 2f 77 77 77 2e ing [http://www.
0200: 73 71 6c 69 74 65 2e 6f 72 67 2f 7c 73 71 6c 69 sqlite.org/|sqli
0210: 74 65 5d 20 64 61 74 61 62 61 73 65 20 66 6f 72 te] database for
0220: 20 61 6c 6c 20 74 68 69 6e 67 73 2e 0d 0a 0d 0a all things.....
0230: 53 74 61 74 75 73 3a 0d 0a 20 20 2a 20 20 50 61 Status:.. * Pa
0240: 73 73 20 43 6f 6c 6c 41 72 3a 20 43 6f 6c 6c 65 ss CollAr: Colle
0250: 63 74 20 61 72 63 68 69 76 65 73 20 2d 20 6f 6b ct archives - ok
0260: 2e 0d 0a 20 20 2a 20 20 50 61 73 73 20 43 6f 6c ... * Pass Col
0270: 6c 52 65 76 3a 20 43 6f 6c 6c 65 63 74 20 72 65 lRev: Collect re
0280: 76 69 73 69 6f 6e 73 2c 20 74 61 67 73 2c 20 62 visions, tags, b
0290: 72 61 6e 63 68 65 73 20 28 66 69 6c 65 20 6c 65 ranches (file le
02a0: 76 65 6c 29 20 2d 20 6f 6b 2e 0d 0a 20 20 2a 20 vel) - ok... *
02b0: 20 50 61 73 73 20 43 6f 6c 6c 53 79 6d 3a 20 43 Pass CollSym: C
02c0: 6f 6c 6c 61 74 65 20 73 79 6d 62 6f 6c 20 28 70 ollate symbol (p
02d0: 72 6f 6a 65 63 74 20 6c 65 76 65 6c 29 20 66 72 roject level) fr
02e0: 6f 6d 20 74 68 65 20 66 69 6c 65 20 6c 65 76 65 om the file leve
02f0: 6c 20 64 61 74 61 20 2d 20 6f 6b 2e 0d 0a 20 20 l data - ok...
0300: 2a 20 20 50 61 73 73 20 46 69 6c 74 65 72 53 79 * Pass FilterSy
0310: 6d 3a 20 46 69 6c 74 65 72 20 73 79 6d 62 6f 6c m: Filter symbol
0320: 73 2c 20 65 78 63 6c 75 64 65 20 73 79 6d 62 6f s, exclude symbo
0330: 6c 73 20 61 6e 64 20 6c 69 6e 65 73 20 6f 66 20 ls and lines of
0340: 64 65 76 65 6c 6f 70 6d 65 6e 74 20 2d 20 6f 6b development - ok
0350: 2e 0d 0a 20 20 2a 20 20 50 61 73 73 20 49 6e 69 ... * Pass Ini
0360: 74 43 73 65 74 73 3a 20 43 72 65 61 74 65 20 69 tCsets: Create i
0370: 6e 69 74 69 61 6c 20 63 68 61 6e 67 65 73 65 74 nitial changeset
0380: 73 20 2d 20 6f 6b 2e 20 3c 62 3e 4d 65 6d 6f 72 s - ok. <b>Memor
0390: 79 20 48 6f 67 2c 20 53 6c 6f 77 20 63 6f 6d 6d y Hog, Slow comm
03a0: 69 74 3c 2f 62 3e 0d 0a 20 20 2a 20 20 50 61 73 it</b>.. * Pas
03b0: 73 20 43 73 65 74 44 65 70 73 3a 20 43 6f 6d 70 s CsetDeps: Comp
03c0: 75 74 65 20 63 68 61 6e 67 65 73 65 74 20 64 65 ute changeset de
03d0: 70 65 6e 64 65 6e 63 69 65 73 20 66 72 6f 6d 20 pendencies from
03e0: 72 65 76 69 73 69 6f 6e 20 64 65 70 65 6e 64 65 revision depende
03f0: 6e 63 69 65 73 20 2d 20 6f 6b 2e 0d 0a 20 20 2a ncies - ok... *
0400: 20 20 50 61 73 73 20 42 72 65 61 6b 52 43 79 63 Pass BreakRCyc
0410: 6c 65 3a 20 42 72 65 61 6b 20 63 79 63 6c 65 73 le: Break cycles
0420: 20 61 6d 6f 6e 67 20 72 65 76 69 73 69 6f 6e 20 among revision
0430: 63 68 61 6e 67 65 73 65 74 73 20 2d 20 6f 6b 2e changesets - ok.
0440: 0d 0a 20 20 2a 20 20 50 61 73 73 20 52 65 76 54 .. * Pass RevT
0450: 6f 70 53 6f 72 74 3a 20 20 54 6f 70 6f 6c 6f 67 opSort: Topolog
0460: 69 63 61 6c 6c 79 20 73 6f 72 74 20 72 65 76 69 ically sort revi
0470: 73 69 6f 6e 20 63 68 61 6e 67 65 73 65 74 73 20 sion changesets
0480: 2d 20 6f 6b 2e 0d 0a 20 20 2a 20 20 50 61 73 73 - ok... * Pass
0490: 20 42 72 65 61 6b 53 43 79 63 6c 65 3a 20 42 72 BreakSCycle: Br
04a0: 65 61 6b 20 63 79 63 6c 65 73 20 61 6d 6f 6e 67 eak cycles among
04b0: 20 73 79 6d 62 6f 6c 20 63 68 61 6e 67 65 73 65 symbol changese
04c0: 74 73 20 2d 20 6f 6b 2e 0d 0a 20 20 2a 20 20 50 ts - ok... * P
04d0: 61 73 73 20 42 72 65 61 6b 41 43 79 63 6c 65 3a ass BreakACycle:
04e0: 20 42 72 65 61 6b 20 63 79 63 6c 65 73 20 6f 76 Break cycles ov
04f0: 65 72 20 61 6c 6c 20 63 68 61 6e 67 65 73 65 74 er all changeset
0500: 73 20 2d 20 3c 62 3e 4d 61 79 20 73 74 69 6c 6c s - <b>May still
0510: 20 63 68 61 6e 67 65 20 74 68 65 20 6f 72 64 65 change the orde
0520: 72 20 6f 66 20 72 65 76 69 73 69 6f 6e 20 63 68 r of revision ch
0530: 61 6e 67 65 73 65 74 73 20 6f 76 65 72 20 74 68 angesets over th
0540: 65 20 72 65 73 75 6c 74 20 6f 66 20 70 61 73 73 e result of pass
0550: 20 37 2e 3c 2f 62 3e 0d 0a 20 20 2a 20 20 50 61 7.</b>.. * Pa
0560: 73 73 20 41 54 6f 70 53 6f 72 74 3a 20 53 68 6f ss ATopSort: Sho
0570: 75 6c 64 20 62 65 20 6f 6b 2e 0d 0a 0d 0a 50 61 uld be ok.....Pa
0580: 73 73 65 73 20 74 6f 20 64 6f 3a 0d 0a 20 20 2a sses to do:.. *
0590: 20 20 50 75 74 20 63 68 61 6e 67 65 73 65 74 20 Put changeset
05a0: 6f 72 64 65 72 20 66 72 6f 6d 20 74 68 65 20 74 order from the t
05b0: 6f 70 2e 73 6f 72 74 20 70 61 73 73 65 73 20 61 op.sort passes a
05c0: 6e 64 20 74 72 65 65 20 6f 66 20 73 79 6d 62 6f nd tree of symbo
05d0: 6c 73 20 66 72 6f 6d 20 74 68 65 20 63 6f 6c 6c ls from the coll
05e0: 7c 46 69 6c 74 65 72 53 79 6d 20 70 61 73 73 65 |FilterSym passe
05f0: 73 20 74 6f 67 65 74 68 65 72 20 69 6e 74 6f 20 s together into
0600: 61 20 74 72 65 65 20 6f 66 20 63 68 61 6e 67 65 a tree of change
0610: 73 65 74 73 2e 20 4e 6f 74 65 20 74 68 61 74 20 sets. Note that
0620: 69 74 20 6d 69 67 68 74 20 6e 6f 74 20 62 65 20 it might not be
0630: 61 20 74 72 65 65 20 69 66 20 74 68 65 72 65 20 a tree if there
0640: 69 73 20 61 6e 20 4e 54 44 42 20 61 72 6f 75 6e is an NTDB aroun
0650: 64 2e 0d 0a 20 20 2a 20 50 65 72 66 6f 72 6d 20 d... * Perform
0660: 74 68 65 20 61 63 74 75 61 6c 20 69 6d 70 6f 72 the actual impor
0670: 74 2e 0d 0a 0d 0a 4e 6f 74 65 73 20 72 65 67 61 t.....Notes rega
0680: 72 64 69 6e 67 20 74 68 65 20 61 63 74 75 61 6c rding the actual
0690: 20 69 6d 70 6f 72 74 3a 0d 0a 3c 75 6c 3e 0d 0a import:..<ul>..
06a0: 3c 6c 69 3e 63 76 73 32 73 76 6e 20 69 73 20 65 <li>cvs2svn is e
06b0: 69 74 68 65 72 20 73 6c 6f 77 2c 20 6f 72 20 68 ither slow, or h
06c0: 75 6e 67 72 79 20 66 6f 72 20 64 69 73 6b 73 70 ungry for disksp
06d0: 61 63 65 2e 20 54 68 65 20 72 65 61 73 6f 6e 3a ace. The reason:
06e0: 20 49 74 20 69 73 20 69 6d 70 6f 72 74 69 6e 67 It is importing
06f0: 20 63 68 61 6e 67 65 73 65 74 20 62 79 20 63 68 changeset by ch
0700: 61 6e 67 65 73 65 74 20 61 6e 64 20 73 6f 20 68 angeset and so h
0710: 61 73 20 74 6f 20 65 69 74 68 65 72 20 72 65 67 as to either reg
0720: 65 6e 65 72 61 74 65 20 74 68 65 20 6e 65 65 64 enerate the need
0730: 65 64 20 72 65 76 69 73 69 6f 6e 73 20 6f 66 20 ed revisions of
0740: 74 68 65 20 66 69 6c 65 73 20 6f 6e 2d 64 65 6d the files on-dem
0750: 61 6e 64 20 6f 76 65 72 20 61 6e 64 20 6f 76 65 and over and ove
0760: 72 2c 20 6f 72 20 69 74 20 63 61 63 68 65 73 20 r, or it caches
0770: 74 68 65 20 6e 65 65 64 65 64 20 72 65 76 69 73 the needed revis
0780: 69 6f 6e 73 20 77 68 65 6e 20 63 72 65 61 74 65 ions when create
0790: 64 20 75 6e 74 69 6c 20 74 68 65 20 6c 61 73 74 d until the last
07a0: 20 75 73 65 72 20 69 73 20 67 6f 6e 65 2e 0d 0a user is gone...
07b0: 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 57 65 20 63 61 </li>..<li>We ca
07c0: 6e 20 64 6f 20 62 65 74 74 65 72 2c 20 69 66 20 n do better, if
07d0: 77 65 20 67 65 74 20 68 65 6c 70 20 66 72 6f 6d we get help from
07e0: 20 66 6f 73 73 69 6c 2e 20 57 65 20 77 6f 75 6c fossil. We woul
07f0: 64 20 6e 65 65 64 20 63 6f 6d 6d 61 6e 64 73 20 d need commands
0800: 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 20 66 to perform the f
0810: 6f 6c 6c 6f 77 69 6e 67 20 61 63 74 69 6f 6e 73 ollowing actions
0820: 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 20 49 6d :..<ul>..<li> Im
0830: 70 6f 72 74 20 61 20 66 69 6c 65 20 61 73 20 62 port a file as b
0840: 6c 6f 62 2c 20 72 65 74 75 72 6e 20 69 74 73 20 lob, return its
0850: 69 6e 74 65 72 6e 61 6c 20 69 64 2e 0d 0a 3c 6c internal id...<l
0860: 69 3e 20 44 65 6c 74 69 66 79 20 61 20 6b 6e 6f i> Deltify a kno
0870: 77 6e 20 66 69 6c 65 20 72 65 73 70 65 63 74 69 wn file respecti
0880: 76 65 20 74 6f 20 61 20 73 65 63 6f 6e 64 20 6b ve to a second k
0890: 6e 6f 77 6e 20 66 69 6c 65 2e 0d 0a 3c 6c 69 3e nown file...<li>
08a0: 0d 0a 3c 2f 75 6c 3e 0d 0a 57 69 74 68 20 74 68 ..</ul>..With th
08b0: 65 73 65 20 61 63 74 69 6f 6e 73 20 28 70 6f 73 ese actions (pos
08c0: 73 69 62 6c 65 20 69 6e 20 63 6f 6d 62 69 6e 61 sible in combina
08d0: 74 69 6f 6e 29 20 77 65 20 63 61 6e 20 69 6d 70 tion) we can imp
08e0: 6f 72 74 20 74 68 65 20 61 72 63 68 69 76 65 20 ort the archive
08f0: 66 69 6c 65 73 20 66 69 72 73 74 2c 20 6e 65 65 files first, nee
0900: 64 69 6e 67 20 6f 6e 6c 79 20 73 70 61 63 65 20 ding only space
0910: 66 6f 72 20 74 68 65 20 72 65 76 69 73 69 6f 6e for the revision
0920: 73 20 6f 66 20 61 20 73 69 6e 67 6c 65 20 66 69 s of a single fi
0930: 6c 65 20 28 62 6f 75 6e 64 65 64 20 62 79 20 74 le (bounded by t
0940: 68 65 20 6c 61 72 67 65 73 74 20 66 69 6c 65 20 he largest file
0950: 69 6e 20 74 65 72 6d 73 20 6f 66 20 73 69 7a 65 in terms of size
0960: 20 61 6e 64 20 68 69 73 74 6f 72 79 29 2c 20 77 and history), w
0970: 69 74 68 20 74 68 65 69 72 20 64 65 6c 74 61 2d ith their delta-
0980: 6c 69 6e 6b 73 20 6d 69 72 72 6f 72 69 6e 67 20 links mirroring
0990: 74 68 65 20 52 43 53 20 73 74 72 75 63 74 75 72 the RCS structur
09a0: 65 2e 20 41 66 74 65 72 20 74 68 61 74 20 77 65 e. After that we
09b0: 20 63 61 6e 20 69 6e 64 65 70 65 6e 64 65 6e 74 can independent
09c0: 6c 79 20 67 65 6e 65 72 61 74 65 2c 20 69 6d 70 ly generate, imp
09d0: 6f 72 74 2c 20 61 6e 64 20 64 65 6c 74 69 66 79 ort, and deltify
09e0: 20 74 68 65 20 6d 61 6e 69 66 65 73 74 73 20 66 the manifests f
09f0: 6f 72 20 63 68 61 6e 67 65 73 65 74 73 2e 20 74 or changesets. t
0a00: 6f 20 66 69 6e 61 6c 69 7a 65 20 77 65 20 73 69 o finalize we si
0a10: 6d 70 6c 79 20 27 72 65 62 75 69 6c 64 27 20 74 mply 'rebuild' t
0a20: 68 65 20 72 65 70 6f 73 69 74 6f 72 79 2e 20 54 he repository. T
0a30: 68 69 73 20 73 68 6f 75 6c 64 20 62 65 20 66 61 his should be fa
0a40: 73 74 20 77 69 74 68 6f 75 74 20 6e 65 65 64 69 st without needi
0a50: 6e 67 20 6d 75 63 68 20 74 65 6d 70 6f 72 61 72 ng much temporar
0a60: 79 20 64 69 73 6b 20 73 70 61 63 65 20 65 69 74 y disk space eit
0a70: 68 65 72 2e 0d 0a 3c 2f 6c 69 3e 0d 0a 3c 2f 75 her...</li>..</u
0a80: 6c 3e 0d 0a 0a 5a 20 63 31 32 61 35 38 35 62 63 l>...Z c12a585bc
0a90: 62 63 62 32 31 61 39 33 36 62 34 61 61 35 33 64 bcb21a936b4aa53d
0aa0: 65 66 65 37 64 32 31 0a efe7d21.