D:\o is server, D:\m is client.

The content of tst_server.bat is:
md D:\o
cd /d D:\o
if exist ops del /q ops
if exist _FOSSIL_ del /q _FOSSIL_
fossil version
@echo Please record the password and set it into tst_client.bat
fossil new ops
fossil open ops
fossil server

Run it, the result as:
D:\>tst_server

D:\>md D:\o

D:\>cd /d D:\o

D:\o>if exist ops del /q ops

D:\o>if exist _FOSSIL_ del /q _FOSSIL_

D:\o>fossil version
This is fossil version 1.18 [df9da91ba8] 2011-07-13 23:03:41 UTC
Please record the password and set it into tst_client.bat

D:\o>fossil new ops
project-id: f9a8a00d5e9da10cca9d573abdfdd9cf47cacf8e
server-id:  b10bd2afac89e2866691ed597941a192a3e19a6b
admin-user: y00122496 (initial password is "6ee22f")

D:\o>fossil open ops

D:\o>fossil server
Listening for HTTP requests on TCP port 8080
Type Ctrl-C to stop the HTTP server

Then set the password of “6ee22f” into tst_client.bat, and the content of it is:
md D:\m
cd /d D:\m
if exist ops del /q ops
if exist _FOSSIL_ del /q _FOSSIL_
fossil clone http://y00122496:6ee22f@y00122496:8080 ops
fossil open ops
dir > text.txt
fossil add text.txt
fossil commit --comment First
fossil ls
cd /d D:\o
fossil ls
@echo.
@echo test.txt is NOT in the repository of server

Run it in a new CMD window, the result is:
D:\>tst_client

D:\>md D:\m

D:\>cd /d D:\m

D:\m>if exist ops del /q ops

D:\m>if exist _FOSSIL_ del /q _FOSSIL_

D:\m>fossil clone http://y00122496:6ee22f@y00122496:8080 ops
                Bytes      Cards  Artifacts     Deltas
Sent:              53          1          0          0
Received:         343          5          1          0
Sent:              58          2          0          0
Received:         634          2          0          0
Total network traffic: 488 bytes sent, 1128 bytes received
Rebuilding repository meta-data...
  100.0% complete...
project-id: f9a8a00d5e9da10cca9d573abdfdd9cf47cacf8e
server-id:  fa942f090e10183e21dc397e1667848f537fd17a
admin-user: y00122496 (password is "db4127")

D:\m>fossil open ops

D:\m>dir  1>text.txt

D:\m>fossil add text.txt
ADDED  text.txt

D:\m>fossil commit --comment First
Autosync:  http://y00122496@y00122496:8080
                Bytes      Cards  Artifacts     Deltas
Sent:             130          1          0          0
Received:          78          2          0          0
Total network traffic: 323 bytes sent, 289 bytes received
New_Version: 66eee12277e4390211e511e25dba6e71330c1b29
Autosync:  http://y00122496@y00122496:8080
                Bytes      Cards  Artifacts     Deltas
Sent:             447          7          0          0
Received:         360          8          0          0
Total network traffic: 411 bytes sent, 441 bytes received

D:\m>fossil ls
text.txt

D:\m>cd /d D:\o

D:\o>fossil ls

test.txt is NOT in the repository of server

D:\o>

Why test.txt had not been sync to server?
________________________________
YJ
华为技术有限公司 Huawei Technologies Co., Ltd.
[Company_logo]

Phone: 28356714
Fax:
Mobile: 13316882199
Email: y...@huawei.com
地址:深圳市龙岗区坂田华为基地 邮编:518129
Huawei Technologies Co., Ltd.
Bantian, Longgang District,Shenzhen 518129, P.R.China
http://www.huawei.com
________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, 
which
is intended only for the person or entity whose address is listed above. Any 
use of the
information contained herein in any way (including, but not limited to, total 
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender by
phone or email immediately and delete it!

<<inline: image001.jpg>>

Attachment: tst.7z
Description: tst.7z

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to