One other thought occured to me, which is the possibility that your server
is not actually running on :8080, because you have several fossil servers
open. You might want to check this possibility as well.

Tomek

2011/8/5 Tomek Kott <[email protected]>

> There could be one bug, if what you're showing is the actual output of the
> terminal. The reason I say that is the following:
>
> D:\o>fossil open ops
>
> D:\o>fossil ls -l
> *
> In between those two lines, you should get fossil's output that says
>
> client.txt
> project-name: <unnamed>
> repository:...
> ....
> several more lines
> ....
> comment: Client1 (user: .,..)*
>
> So if you don't see the above, then something is wrong with fossil open for
> some reason (perhaps an errant _FOSSIL_ or something similar). Following
> your test generally by hand on my fossil (1.19: fca3073721 from 7/22) gives
> the expected response.
>
> However, there is one other error in what you are expecting to happen. When
> you issue
>
> D:\m>fossil sync http://y00122496:3f57fe@y00122496:8080
>
> you are *only* syncing the repository. You are not updating the current
> checkout to the newest commit. So you need to issue a "fossil update"
> command for the 'client' to see the servers changes. Note that this doesn't
> apply the other way, because when you issue 'fossil open' it checks out the
> newest commit.
>
> So, that part works perfectly fine. It seems that the "fossil open" is what
> is messing things up. If you don't see *any* output of that, that is
> probably where the error is. I would suggest issuing all the commands by
> hand an ensuring that the output is as expected.
>
> Tomek
>
> 2011/8/5 Yujianbin <[email protected]>
>
>> Hi, Ron:
>>
>> Thanks a lot!
>>
>> I think with or without open repository 'ops' in server, the server should
>> act equally. This is the test:
>>
>> ============================================================================
>> Content of tst_server.bat
>>
>> ----------------------------------------------------------------------------
>> md D:\o
>> cd /d D:\o
>> if exist ops del /q ops
>> if exist _FOSSIL_ del /q _FOSSIL_
>> fossil version
>> @echo.
>> @echo Please record the password and set it into tst_client.bat
>> fossil new ops
>> fossil server ops
>>
>> ============================================================================
>> The result of run tst_server.bat is in tst_server.txt:
>>
>> ----------------------------------------------------------------------------
>> 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: 23192a3021d29562f65a705ddc8dba8016070a32
>> server-id:  ea446b3b950372ff8114dfb3e570cada9597beec
>> admin-user: y00122496 (initial password is "3f57fe")
>>
>> D:\o>fossil server ops
>> Listening for HTTP requests on TCP port 8080
>> Type Ctrl-C to stop the HTTP server
>>
>> ============================================================================
>> Then copy the password into tst_client.bat as follow:
>>
>> ----------------------------------------------------------------------------
>> md D:\m
>> cd /d D:\m
>> if exist ops del /q ops
>> if exist _FOSSIL_ del /q _FOSSIL_
>> fossil clone http://y00122496:3f57fe@y00122496:8080 ops
>> fossil open ops
>> dir > client.txt
>> fossil add client.txt
>> fossil commit --comment Client1
>> fossil ls -l
>> @echo.
>> @echo Turn to server
>> cd /d D:\o
>> fossil open ops
>> fossil ls -l
>> @echo.
>> @echo client.txt is NOT in the repository of server
>> dir > server.txt
>> fossil add server.txt
>> fossil commit --comment Server1
>> fossil ls -l
>> @echo.
>> @echo Turn to client
>> cd /d D:\m
>> fossil sync http://y00122496:3f57fe@y00122496:8080
>> fossil ls -l
>> @echo.
>> @echo server.txt is NOT in the repository of client
>>
>> ============================================================================
>> The result of run tst_client.bat is in tst_client.txt:
>>
>> ----------------------------------------------------------------------------
>> D:\>q\fossil\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:3f57fe@y00122496:8080 ops
>>                Bytes      Cards  Artifacts     Deltas
>> Sent:              53          1          0          0
>> Received:         344          5          1          0
>> Sent:              58          2          0          0
>> Received:         634          2          0          0
>> Total network traffic: 491 bytes sent, 1129 bytes received
>> Rebuilding repository meta-data...
>>  100.0% complete...
>> project-id: 23192a3021d29562f65a705ddc8dba8016070a32
>> server-id:  ff80810a3b3b768c1dec8873ba9c66e6d86ee342
>> admin-user: y00122496 (password is "3b68ee")
>>
>> D:\m>fossil open ops
>>
>> D:\m>dir  1>client.txt
>>
>> D:\m>fossil add client.txt
>> ADDED  client.txt
>>
>> D:\m>fossil commit --comment Client1
>> Autosync:  http://y00122496@y00122496:8080
>>                Bytes      Cards  Artifacts     Deltas
>> Sent:             130          1          0          0
>> Received:          78          2          0          0
>> Total network traffic: 321 bytes sent, 289 bytes received
>> New_Version: d2341c76226d722de9c43c1d05303fe5430a4407
>> Autosync:  http://y00122496@y00122496:8080
>>                Bytes      Cards  Artifacts     Deltas
>> Sent:             447          7          0          0
>> Received:         172          4          0          0
>> Total network traffic: 410 bytes sent, 345 bytes received
>>
>> D:\m>fossil ls -l
>> UNCHANGED  client.txt
>>
>> Turn to server
>>
>> D:\m>cd /d D:\o
>>
>> D:\o>fossil open ops
>>
>> D:\o>fossil ls -l
>>
>> client.txt is NOT in the repository of server
>>
>> D:\o>dir  1>server.txt
>>
>> D:\o>fossil add server.txt
>> ADDED  server.txt
>>
>> D:\o>fossil commit --comment Server1
>> New_Version: a49b7975fad894b8c161165324c034667bccf8d7
>>
>> D:\o>fossil ls -l
>> UNCHANGED  server.txt
>>
>> Turn to client
>>
>> D:\o>cd /d D:\m
>>
>> D:\m>fossil sync http://y00122496:3f57fe@y00122496:8080
>>                Bytes      Cards  Artifacts     Deltas
>> Sent:             355          5          0          0
>> Received:         264          6          0          0
>> Sent:             541          9          0          0
>> Received:         952          8          2          0
>> Total network traffic: 872 bytes sent, 1084 bytes received
>>
>> D:\m>fossil ls -l
>> UNCHANGED  client.txt
>>
>> server.txt is NOT in the repository of client
>>
>> D:\m>
>>
>> ============================================================================
>> The result means the client can clone the repository from server, but
>> cannot
>> sync from server, no matter pull or push.
>>
>> ============================================================================
>> From: Ron Wilson [[email protected]]
>> Re: [fossil-users] Maybe a bug in sync
>>
>> On the server, you don't need to do a "fossil open". The repository, in
>> this case, is "ops". When you did the commit on the client side, the file
>> you added was "put" in ops.
>>
>> -----邮件原件-----
>> 发件人: [email protected] [mailto:
>> [email protected]] 代表
>> [email protected]
>> 发送时间: 2011年8月4日 20:00
>> 收件人: [email protected]
>> 主题: fossil-users Digest, Vol 43, Issue 3
>>
>> Send fossil-users mailing list submissions to
>>        [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>> or, via email, send a message with subject or body 'help' to
>>        [email protected]
>>
>> You can reach the person managing the list at
>>        [email protected]
>>
>> When replying, please edit your Subject line so it is more specific than
>> "Re: Contents of fossil-users digest..."
>>
>> _______________________________________________
>> fossil-users mailing list
>>
>> [email protected]
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to