Artifact a31e062bd36bd32306a15f9d15e0d63eafddb178:
File
win32.txt
part of check-in
[c7278fd013]
- Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning.
by
jnc on
2007-09-22 06:47:11.
0000: 4e 6f 74 65 73 3a 20 50 6f 72 74 69 6e 67 20 66 Notes: Porting f
0010: 6f 73 73 69 6c 20 74 6f 20 77 69 6e 33 32 0a 3d ossil to win32.=
0020: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0030: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0040: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0050: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================
0060: 3d 3d 3d 3d 3d 0a 0a 53 65 74 74 69 6e 67 20 75 =====..Setting u
0070: 70 20 6d 79 20 62 75 69 6c 64 20 65 6e 76 69 72 p my build envir
0080: 6f 6e 6d 65 6e 74 3a 0a 2d 2d 2d 2d 2d 2d 2d 2d onment:.--------
0090: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
00c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a --------------..
00d0: 20 20 49 6e 73 74 61 6c 6c 3a 0a 20 20 20 20 4d Install:. M
00e0: 69 6e 47 57 20 35 2e 31 2e 33 0a 20 20 20 20 4d inGW 5.1.3. M
00f0: 53 59 53 20 20 31 2e 30 2e 31 30 0a 20 20 0a 20 SYS 1.0.10. .
0100: 20 44 6f 77 6e 6c 6f 61 64 2f 63 6f 6d 70 69 6c Download/compil
0110: 65 2f 69 6e 73 74 61 6c 6c 20 7a 6c 69 62 20 28 e/install zlib (
0120: 63 6f 6e 66 69 67 75 72 65 20 2d 2d 70 72 65 66 configure --pref
0130: 69 78 3d 2f 6d 69 6e 67 77 29 0a 20 20 44 6f 77 ix=/mingw). Dow
0140: 6e 6c 6f 61 64 2f 63 6f 6d 70 69 6c 65 2f 69 6e nload/compile/in
0150: 73 74 61 6c 6c 20 74 63 6c 73 68 20 28 63 6f 6e stall tclsh (con
0160: 66 69 67 75 72 65 20 2d 2d 70 72 65 66 69 78 3d figure --prefix=
0170: 2f 29 20 28 66 6f 72 20 74 65 73 74 73 29 0a 20 /) (for tests).
0180: 20 0a 20 20 41 6c 6c 20 63 6f 6d 6d 61 6e 64 73 . All commands
0190: 20 77 65 72 65 20 69 73 73 75 65 64 20 69 6e 20 were issued in
01a0: 74 68 65 20 4d 53 59 53 20 73 68 65 6c 6c 2c 20 the MSYS shell,
01b0: 6e 6f 74 20 61 20 63 6d 64 2e 65 78 65 0a 0a 0a not a cmd.exe...
01c0: 0a 4f 75 74 73 74 61 6e 64 69 6e 67 20 49 73 73 .Outstanding Iss
01d0: 75 65 73 3a 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ues:.-----------
01e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
01f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0200: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
0210: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 2a 20 73 -----------..* s
0220: 65 72 76 65 72 20 69 73 20 74 6f 74 61 6c 6c 79 erver is totally
0230: 20 6e 6f 6e 2d 66 75 6e 63 74 69 6f 6e 61 6c 20 non-functional
0240: 2d 20 23 69 66 2f 23 65 6e 64 27 64 20 6f 75 74 - #if/#end'd out
0250: 20 6f 66 20 74 68 65 20 63 6f 64 65 0a 2a 20 61 of the code.* a
0260: 6c 6c 20 70 61 74 68 20 6f 70 65 72 61 74 69 6f ll path operatio
0270: 6e 73 20 61 72 65 20 64 65 66 75 6e 63 74 0a 2a ns are defunct.*
0280: 20 72 65 6d 6f 74 65 20 6e 65 74 77 6f 72 6b 20 remote network
0290: 6f 70 65 72 61 74 69 6f 6e 73 20 61 72 65 20 72 operations are r
02a0: 65 70 6f 72 74 69 6e 67 3a 20 63 61 6e 27 74 20 eporting: can't
02b0: 72 65 73 6f 6c 76 65 20 68 6f 73 74 20 6e 61 6d resolve host nam
02c0: 65 3a 20 78 79 7a 0a 20 20 0a 20 20 57 69 6e 73 e: xyz. . Wins
02d0: 6f 63 6b 20 6d 75 73 74 20 62 65 20 69 6e 69 74 ock must be init
02e0: 69 61 6c 69 7a 65 64 20 62 65 66 6f 72 65 20 75 ialized before u
02f0: 73 69 6e 67 3a 0a 20 20 0a 20 20 20 20 20 20 57 sing:. . W
0300: 53 41 44 41 54 41 20 69 6e 66 6f 3b 0a 20 20 20 SADATA info;.
0310: 20 20 20 69 66 20 28 57 53 41 53 74 61 72 74 75 if (WSAStartu
0320: 70 28 4d 41 4b 45 57 4f 52 44 28 31 2c 31 29 2c p(MAKEWORD(1,1),
0330: 20 26 69 6e 66 6f 29 20 21 3d 20 30 29 7b 0a 20 &info) != 0){.
0340: 20 20 20 20 20 20 20 66 6f 73 73 69 6c 5f 70 61 fossil_pa
0350: 6e 69 63 28 22 63 61 6e 27 74 20 69 6e 69 74 69 nic("can't initi
0360: 61 6c 69 7a 65 20 77 69 6e 73 6f 63 6b 22 29 3b alize winsock");
0370: 0a 20 20 20 20 20 20 7d 0a 0a 0a 0a 43 6f 6d 6d . }....Comm
0380: 61 6e 64 73 20 73 74 61 74 75 73 3a 0a 2d 2d 2d ands status:.---
0390: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
03a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
03b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
03c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ----------------
03d0: 2d 2d 2d 0a 0a 61 64 64 20 20 20 20 20 20 20 20 ---..add
03e0: 20 20 20 20 20 20 20 4f 4b 0a 63 67 69 20 20 20 OK.cgi
03f0: 20 20 20 20 20 20 20 20 20 20 20 20 4e 6f 74 20 Not
0400: 74 65 73 74 65 64 0a 63 68 61 6e 67 65 73 20 20 tested.changes
0410: 20 20 20 20 20 20 20 20 20 4f 4b 0a 63 68 65 63 OK.chec
0420: 6b 6f 75 74 20 20 20 20 20 20 20 20 20 20 42 41 kout BA
0430: 44 20 23 31 0a 63 6c 65 61 6e 20 20 20 20 20 20 D #1.clean
0440: 20 20 20 20 20 20 20 4f 4b 0a 63 6c 6f 6e 65 20 OK.clone
0450: 20 20 20 20 20 20 20 20 20 20 20 20 4c 6f 63 61 Loca
0460: 6c 20 4f 6e 6c 79 20 23 32 0a 63 6c 6f 73 65 20 l Only #2.close
0470: 20 20 20 20 20 20 20 20 20 20 20 20 4f 4b 0a 63 OK.c
0480: 6f 6d 6d 69 74 20 20 20 20 20 20 20 20 20 20 20 ommit
0490: 20 4f 4b 20 28 6e 6f 74 20 74 65 73 74 65 64 20 OK (not tested
04a0: 77 69 74 68 20 67 70 67 20 73 69 67 6e 69 6e 67 with gpg signing
04b0: 20 79 65 74 29 0a 63 6f 6e 66 69 67 20 20 20 20 yet).config
04c0: 20 20 20 20 20 20 20 20 4f 4b 0a 64 65 63 6f 6e OK.decon
04d0: 73 74 72 75 63 74 20 20 20 20 20 20 20 4f 4b 0a struct OK.
04e0: 64 65 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 del
04f0: 20 20 4f 4b 0a 64 65 73 63 65 6e 64 65 6e 74 73 OK.descendents
0500: 20 20 20 20 20 20 20 4f 4b 0a 64 69 66 66 20 20 OK.diff
0510: 20 20 20 20 20 20 20 20 20 20 20 20 4f 4b 0a 65 OK.e
0520: 78 74 72 61 20 20 20 20 20 20 20 20 20 20 20 20 xtra
0530: 20 4f 4b 0a 68 65 6c 70 20 20 20 20 20 20 20 20 OK.help
0540: 20 20 20 20 20 20 4f 4b 0a 68 74 74 70 20 20 20 OK.http
0550: 20 20 20 20 20 20 20 20 20 20 20 4e 6f 74 20 54 Not T
0560: 65 73 74 65 64 0a 69 6e 66 6f 20 20 20 20 20 20 ested.info
0570: 20 20 20 20 20 20 20 20 4f 4b 0a 6c 65 61 76 65 OK.leave
0580: 73 20 20 20 20 20 20 20 20 20 20 20 20 4f 4b 0a s OK.
0590: 6c 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ls
05a0: 20 20 4f 4b 0a 6d 65 72 67 65 20 20 20 20 20 20 OK.merge
05b0: 20 20 20 20 20 20 20 4f 4b 0a 6e 65 77 20 20 20 OK.new
05c0: 20 20 20 20 20 20 20 20 20 20 20 20 4f 4b 0a 6f OK.o
05d0: 70 65 6e 20 20 20 20 20 20 20 20 20 20 20 20 20 pen
05e0: 20 4f 4b 0a 70 75 6c 6c 20 20 20 20 20 20 20 20 OK.pull
05f0: 20 20 20 20 20 20 42 41 44 20 23 32 0a 70 75 73 BAD #2.pus
0600: 68 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 h B
0610: 41 44 20 23 32 0a 72 65 62 75 69 6c 64 20 20 20 AD #2.rebuild
0620: 20 20 20 20 20 20 20 20 4f 4b 20 28 64 69 64 6e OK (didn
0630: 27 74 20 68 61 76 65 20 61 20 63 6f 72 72 75 70 't have a corrup
0640: 74 20 66 69 6c 65 20 74 6f 20 74 72 79 20 6f 6e t file to try on
0650: 20 74 68 6f 75 67 68 29 0a 72 65 64 6f 20 20 20 though).redo
0660: 20 20 20 20 20 20 20 20 20 20 20 42 41 44 20 23 BAD #
0670: 33 0a 72 6d 20 20 20 20 20 20 20 20 20 20 20 20 3.rm
0680: 20 20 20 20 4f 4b 0a 73 65 72 76 65 72 20 20 20 OK.server
0690: 20 20 20 20 20 20 20 20 20 42 41 44 20 23 32 2c BAD #2,
06a0: 23 34 0a 73 74 61 74 75 73 20 20 20 20 20 20 20 #4.status
06b0: 20 20 20 20 20 4f 4b 0a 73 79 6e 63 20 20 20 20 OK.sync
06c0: 20 20 20 20 20 20 20 20 20 20 42 41 44 20 23 32 BAD #2
06d0: 0a 74 69 6d 65 6c 69 6e 65 20 20 20 20 20 20 20 .timeline
06e0: 20 20 20 4f 4b 0a 74 6b 64 69 66 66 20 20 20 20 OK.tkdiff
06f0: 20 20 20 20 20 20 20 20 4f 4b 0a 75 6e 64 6f 20 OK.undo
0700: 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 4b 0a OK.
0710: 75 70 64 61 74 65 20 20 20 20 20 20 20 20 20 20 update
0720: 20 20 4f 4b 0a 75 73 65 72 20 63 61 70 61 62 69 OK.user capabi
0730: 6c 69 74 69 65 73 20 4f 4b 0a 75 73 65 72 20 64 lities OK.user d
0740: 65 66 61 75 6c 74 20 20 20 20 20 20 4f 4b 0a 75 efault OK.u
0750: 73 65 72 20 6c 69 73 74 20 20 20 20 20 20 20 20 ser list
0760: 20 4f 4b 0a 75 73 65 72 20 6e 65 77 20 20 20 20 OK.user new
0770: 20 20 20 20 20 20 4f 4b 0a 75 73 65 72 20 70 61 OK.user pa
0780: 73 73 77 6f 72 64 20 20 20 20 20 4f 4b 0a 0a 23 ssword OK..#
0790: 31 20 48 61 76 65 20 61 20 72 65 70 6f 20 77 68 1 Have a repo wh
07a0: 65 72 65 20 49 20 72 65 6d 6f 76 65 64 20 61 20 ere I removed a
07b0: 66 69 6c 65 2e 20 49 20 64 69 64 20 61 20 66 6f file. I did a fo
07c0: 73 73 69 6c 20 63 68 65 63 6b 6f 75 74 20 31 32 ssil checkout 12
07d0: 33 61 62 63 2c 0a 20 20 20 77 68 69 63 68 20 69 3abc,. which i
07e0: 73 20 74 68 65 20 6c 61 73 74 20 76 65 72 73 69 s the last versi
07f0: 6f 6e 20 74 68 61 74 20 68 61 64 20 74 68 65 20 on that had the
0800: 66 69 6c 65 2e 20 54 68 65 20 66 69 6c 65 20 64 file. The file d
0810: 6f 65 73 20 6e 6f 74 0a 20 20 20 61 70 70 65 61 oes not. appea
0820: 72 2e 20 66 6f 73 73 69 6c 20 63 68 65 63 6b 6f r. fossil checko
0830: 75 74 20 2d 2d 66 6f 72 63 65 20 31 32 33 61 62 ut --force 123ab
0840: 63 20 64 6f 65 73 20 74 68 69 6e 67 73 2c 20 62 c does things, b
0850: 75 74 20 73 74 69 6c 6c 20 74 68 65 0a 20 20 20 ut still the.
0860: 66 69 6c 65 20 64 6f 65 73 20 6e 6f 74 20 61 70 file does not ap
0870: 70 65 61 72 2e 0a 20 20 20 0a 20 20 20 4d 61 6b pear.. . Mak
0880: 65 20 61 20 6e 65 77 20 64 69 72 2c 20 66 6f 73 e a new dir, fos
0890: 73 69 6c 20 6f 70 65 6e 20 2e 2e 2f 72 65 70 6f sil open ../repo
08a0: 2e 66 73 6c 20 26 26 20 66 6f 73 73 69 6c 20 63 .fsl && fossil c
08b0: 68 65 63 6b 6f 75 74 20 31 32 33 61 62 63 20 61 heckout 123abc a
08c0: 6e 64 0a 20 20 20 74 68 65 20 66 69 6c 65 20 61 nd. the file a
08d0: 70 70 65 61 72 73 2e 0a 20 20 20 0a 20 20 20 49 ppears.. . I
08e0: 73 20 74 68 61 74 20 6e 6f 72 6d 61 6c 20 6f 70 s that normal op
08f0: 65 72 61 74 69 6f 6e 3f 0a 0a 23 32 20 4e 6f 20 eration?..#2 No
0900: 73 6f 63 6b 65 74 20 6f 70 65 72 61 74 69 6f 6e socket operation
0910: 73 20 61 72 65 20 66 75 6e 63 74 69 6f 6e 69 6e s are functionin
0920: 67 20 79 65 74 0a 0a 23 33 20 49 6e 20 74 65 73 g yet..#3 In tes
0930: 74 31 2f 20 49 20 65 64 69 74 65 64 20 61 20 66 t1/ I edited a f
0940: 69 6c 65 2c 20 74 65 73 74 32 2f 20 49 20 75 70 ile, test2/ I up
0950: 64 61 74 65 64 2c 20 74 79 70 65 20 66 69 6c 65 dated, type file
0960: 2e 74 78 74 20 63 68 61 6e 67 65 73 0a 20 20 20 .txt changes.
0970: 77 65 72 65 20 74 68 65 72 65 2e 20 49 20 74 68 were there. I th
0980: 65 6e 20 64 69 64 20 66 6f 73 73 69 6c 20 75 6e en did fossil un
0990: 64 6f 20 66 69 6c 65 2e 74 78 74 2e 20 54 68 65 do file.txt. The
09a0: 20 63 68 61 6e 67 65 73 20 77 65 72 65 20 67 6f changes were go
09b0: 6e 65 0a 20 20 20 61 6e 64 20 66 6f 73 73 69 6c ne. and fossil
09c0: 20 73 74 61 74 75 73 20 73 61 69 64 20 49 20 68 status said I h
09d0: 61 64 20 65 64 69 74 65 64 20 66 69 6c 65 2e 74 ad edited file.t
09e0: 78 74 2e 20 41 20 66 6f 73 73 69 6c 20 72 65 64 xt. A fossil red
09f0: 6f 20 64 69 64 20 6e 6f 74 0a 20 20 20 70 72 69 o did not. pri
0a00: 6e 74 20 61 6e 79 74 68 69 6e 67 20 74 6f 20 74 nt anything to t
0a10: 68 65 20 73 63 72 65 65 6e 20 61 6e 64 20 74 68 he screen and th
0a20: 65 20 63 68 61 6e 67 65 73 20 66 6f 72 20 66 69 e changes for fi
0a30: 6c 65 2e 74 78 74 20 61 72 65 20 6e 6f 74 0a 20 le.txt are not.
0a40: 20 20 69 6e 20 74 68 65 20 66 69 6c 65 2e 20 66 in the file. f
0a50: 6f 73 73 69 6c 20 73 74 61 74 75 73 20 73 74 69 ossil status sti
0a60: 6c 6c 20 72 65 70 6f 72 74 73 20 74 68 61 74 20 ll reports that
0a70: 74 68 65 20 66 69 6c 65 20 77 61 73 20 65 64 69 the file was edi
0a80: 74 65 64 2e 0a 20 20 20 54 68 65 72 65 20 77 61 ted.. There wa
0a90: 73 20 6e 6f 20 63 6f 6d 6d 69 74 2f 75 70 64 61 s no commit/upda
0aa0: 74 65 20 6f 72 20 61 6e 79 20 6f 74 68 65 72 20 te or any other
0ab0: 63 6f 6d 6d 61 6e 64 20 69 6e 62 65 74 77 65 65 command inbetwee
0ac0: 6e 20 74 68 65 73 65 0a 20 20 20 61 63 74 69 6f n these. actio
0ad0: 6e 73 2e 0a 0a 23 34 20 54 68 65 72 65 20 77 65 ns...#4 There we
0ae0: 72 65 20 76 61 72 69 6f 75 73 20 64 69 66 66 69 re various diffi
0af0: 63 75 6c 74 69 65 73 20 69 6e 20 74 68 69 73 20 culties in this
0b00: 66 75 6e 63 74 69 6f 6e 20 62 65 79 6f 6e 64 20 function beyond
0b10: 73 69 6d 70 6c 65 20 73 6f 63 6b 65 74 0a 20 20 simple socket.
0b20: 20 70 72 6f 62 6c 65 6d 73 2e 20 54 68 65 20 6d problems. The m
0b30: 61 6a 6f 72 20 6f 6e 65 20 62 65 69 6e 67 20 66 ajor one being f
0b40: 6f 72 6b 2e 20 54 68 69 73 20 77 69 6c 6c 20 70 ork. This will p
0b50: 72 6f 62 61 62 6c 79 20 62 65 20 74 68 65 20 6c robably be the l
0b60: 61 73 74 0a 20 20 20 63 6f 6d 6d 61 6e 64 20 74 ast. command t
0b70: 6f 20 62 65 20 66 75 6e 63 74 69 6f 6e 61 6c 20 o be functional
0b80: 69 6e 20 66 6f 73 73 69 6c 20 6f 6e 20 77 69 6e in fossil on win
0b90: 64 6f 77 73 2e 0a dows..