View Ticket
Not logged in
Ticket UUID: 8e13d170f2d6d6e3c5386b7a4177bc21fa9ba28b
Title: File list UI does not show files with similar extensions
Status: Fixed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2011-01-25 21:59:44
Version Found In: f7cff4ad13
Description & Comments:
Steps to reproduce:
  • Add files test.c and test.cpp to the repository.
  • Start UI and view Files.

Expected results:

  • Files test.c and test.cpp are both listed.

Actual results:

  • Only file test.c is listed.

It seems like only the first file (in collating order) is listed for multiple files with the same name and different extensions with a common initial substring. Clicking on "All" to show the union of all files from all check-ins displays both files.


anonymous added on 2011-01-24 18:24:36 UTC:
on the Files view, if you click "All", you will see it..

it seems that when you see only one of them because by default, you see only file for one checkin...

I made the same test as you and I'm was confused too...


anonymous added on 2011-01-24 18:56:02 UTC:
In my case, I tried to edit the file that was not shown on the default view, I commit it and after, I still don't see the file I just commit. And the checkin id is show on top was good.

Step by step from beginning:

# fossil new test.fossil
# mkdir repo
# cd repo
# fossil open ../test.fossil
# echo "a source file" > test.c
# cp test.c test.cpp
# fossil add test.c test.cpp 
# fossil commit

I put some comment...

fossil ui

I see only test.c in "Files"

Then I edit test.cpp, I commit again, I do fossil ui again, I still only see test.c even if on top the checkin number shown on top of the page correspond to the latest commit when I modified test.cpp.


anonymous claiming to be Joerg Sonnenberger added on 2011-01-24 22:36:14 UTC:
I can reproduce the problem with the commands given.


anonymous claiming to be Joerg Sonnenberger added on 2011-01-24 22:42:56 UTC:
browse.c line 215 should be a strcmp. There might be a missing check for removed files in base revisions too?


anonymous claiming to be mgagnon added on 2011-01-25 21:22:31 UTC:
It seems that the problem happens when a file name is shorter than another, but all the characters are the same as the longer one (first characters).

example:

  • test.c and test.cpp will cause the problem
  • test.h and test.c will be ok
  • test and testt will have the same problem

So it's not really related with extension...