Hello everyone. I am looking into updating Diffuse
(http://diffuse.sourceforge.net/) to work with Fossil. However,
Fossil's behaviour with renamed files is causing some difficulties for
me. I want the tool to discover which files the user has modified,
added, removed, or renamed in the working directory and in a specified
commit.
"fossil changes" tells me most of what I want to know
about changes to the working directory but it doesn't tell me the
original name of renamed files. How can I determine the original name
of a renamed file?
Similarly, "fossil timeline <rev> -n 1
-t ci -showfiles" tells me most of what I want to know about a specific
revision but it describes renamed files as "DELETED". I also want to
know the new name of the renamed file. Is the current behaviour
a bug? Is there a different command or command line option I should
use to discover this information?
Below is the behaviour I see with the latest release of Fossil (1.24) under
Linux.
Cheers,
Derrick
$ fossil init test.fossil
project-id: fe4b5f21f063aaeba06968587006164bcf64b091
server-id: 194186c156731c04f0d4a4ef4db9ca20b44bd8d0
admin-user: derrick (initial password is "59c55d")
$ mkdir blah
$ cd blah/
$ fossil open ../test.fossil
$ for i in 1 2 3; do echo "This is $i." > $i.txt; done
$ fossil add *.txt
ADDED 1.txt
ADDED 2.txt
ADDED 3.txt
$
fossil commit
vim "/tmp/test/blah/ci-comment-6509F855E21A.txt"
New_Version: 4ec6ca33e6c539a7cfe7725a61ec2f6758a0ab4f
$ fossil rm 1.txt
DELETED 1.txt
$ rm 1.txt
$ fossil mv 2.txt 2-renamed.txt
RENAME 2.txt 2-renamed.txt
$ mv 2.txt 2-renamed.txt
$ echo 'Changed' >> 3.txt
$ fossil changes
DELETED 1.txt
RENAMED 2-renamed.txt
EDITED 3.txt
$ fossil commit
vim "/tmp/test/blah/ci-comment-475A8F6C97C7.txt"
New_Version: 9dfaf74a1a671244c460d5f119df036f7f0b8e23
$ fossil timeline 9dfaf74a1a671244c460d5f119df036f7f0b8e23 -n 1 -t ci -showfiles
=== 2012-12-03 ===
15:40:13 [9dfaf74a1a] *CURRENT* Checkin 2. (user: derrick tags: trunk)
DELETED 1.txt
DELETED 2.txt
EDITED 3.txt
$
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users