Kia ora,
I managed to reproduce it on a different repo, it works if you change
the file (like you did), but if you just add a file that didn't change
it fails:
% echo one > test.txt
% fossil uv add test.txt
% fossil uv sync -v
Bytes Cards Artifacts Deltas
Sent: 127 1 0 0
Received: 142 4 0 0
Unversioned-file sent: test.txt
Sent: 147 1 0 0
Received: 32 1 0 0
done, sent: 746 received: 593 ip: 5.135.xxx
At this point everything is fine. Now I'm re-adding the exact same file,
didn't touch it or edit it:
% fossil uv add test.txt
% fossil uv sync -v
Bytes Cards Artifacts Deltas
Sent: 127 1 0 0
UV-PUSH-MTIME-ONLY: test.txt
Received: 212 5 0 0
Unversioned-file sent: test.txt
Sent: 143 1 0 0
Received: 32 1 0 0
done, sent: 738 received: 631 ip: 5.135.xxx
Now the file is 0 bytes in the remote repo.
If I change the file contents it works.
So the problem only happens when I overwrite a file that hasn't changed.
I hope this is helpful.
On 8/30/17, BohwaZ <boh...@bohwaz.net> wrote:
Hey,
I'm trying to update an unversioned file in my repo, so I do:
# first add
fossil uv add file.zip
fossil uv sync
# updating the file
fossil uv add file.zip
fossil uv sync
And now the file is 0 bytes?
I'm having trouble reproducing the problem. When I followed the steps
above it worked fine for me. Here is a copy/paste of my shell:
drh@bella:~/fossil/m1/www$ echo one >test.txt
drh@bella:~/fossil/m1/www$ fossil uv add test.txt
drh@bella:~/fossil/m1/www$ fossil uv sync -v
Bytes Cards Artifacts Deltas
Sent: 127 1 0 0
Received: 4842 72 0 0
Unversioned-file sent: test.txt
Sent: 147 1 0 0
Received: 32 1 0 0
done, sent: 720 received: 1804 ip: 45.33.6.223
drh@bella:~/fossil/m1/www$ echo two >test.txt
drh@bella:~/fossil/m1/www$ fossil uv add test.txt
drh@bella:~/fossil/m1/www$ fossil uv sync -v
Bytes Cards Artifacts Deltas
Sent: 127 1 0 0
UV-PUSH: test.txt
Received: 4912 73 0 0
Unversioned-file sent: test.txt
Sent: 147 1 0 0
Received: 32 1 0 0
done, sent: 719 received: 1842 ip: 45.33.6.223
And if you look at https://www.fossil-scm.org/fossil/uv/test.txt you
can clearly see that it is the revised "test.txt" that got synced.
Do you have any additional information on how to cause this problem?
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users