Fossil

View Ticket
Login
Ticket Hash: 974618fe5a809ff347a9c53f9ec38b476d5f65bb
Title: fossil all rebuild does redundant rebuilds on windows
Status: Open Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Open
Last Modified: 2014-02-07 13:51:30
12.16 years ago
Created: 2009-11-11 14:59:17
16.40 years ago
Version Found In: e2431b17df
Description:
on windows, fossil all rebuild causes multiple rebuilds of some repositories. the duplicate rebuilds have identical paths except for the type of slash used in the path or sometimes the character case. not every repository gets rebuilt twice, and some can even get rebuilt thrice. very odd.
PS C:\fossil> fossil all rebuild
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/easyunit.f
84 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/fossil.f
5637 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/sqlite3.f
29810 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/xywinservice.f
33 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:\fossil\easyunit.f
84 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:\fossil\xywinservice.f
33 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild c:\fossil\sqlite3.f
29810 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild c:\fossil\xywinservice.f
33 (100%)...
PS C:\fossil> fossil ver
This is fossil version [e2431b17df] 2009-11-09 21:32:36 UTC

drh added on 2009-11-11 16:21:57:
Check-in [d5695157d0caade4fc251dcfbeb1ac8e8602f672]


rwilson added on 2009-12-08 19:02:04:
This still happens on the tip [484c8f9f86]

PS C:\fossil> fossil all rebuild
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/easyunit.f
84 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/fossil.f
5708 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/sqlite3.f
30014 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:/fossil/xywinservice.f
33 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild C:\fossil\easyunit.f
84 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild c:\fossil\sqlite3.f
30011 (100%)...
C:\WINDOWS\system32\fossil.exe rebuild c:\fossil\xywinservice.f
33 (100%)...
PS C:\fossil> fossil ver
This is fossil version [484c8f9f86] 2009-12-08 18:43:51 UTC
PS C:\fossil>
User Comments:
jan.nijtmans added on 2014-02-06 11:23:46:

Still happens on trunk, as reported in [bbcd18aa11]


mistachkin added on 2014-02-07 03:55:58:
I believe the underlying issue has already been fixed quite a while ago, by
normalizing the slashes and character case used by the file names stored in the
"_fossil" file.

The solution might simply be to remove all (duplicate) entries from the "_fossil"
file.  When the entries get re-added, they should only occur once.

The canonical names in the global_config table should look something like:

'ckout:C:/sqlite/core/'
'repo:C:/repositories/sqlite3.fossil'

Notice the drive letter is capitalized and forward slashes are being used.

jan.nijtmans added on 2014-02-07 13:51:30:
C:\Localdata\workspace\fossil>fossil all rebuild
C:\Localdata\Tcl\bin\fossil.exe rebuild C:/fossil/fossil.fossil
  100.0% complete...

C:\Localdata\workspace\fossil>fossil test-move-repository C:/Fossil/fossil.fossi
l

C:\Localdata\workspace\fossil>fossil update
Autosync:  https://jan.nijtmans@www.fossil-scm.org/fossil
via proxy: http://192.168.13.12:8080
Round-trips: 1   Artifacts sent: 0  received: 0
*** time skew *** server is slow by 3.3 minutes
Pull finished with 442 bytes sent, 2598 bytes received
-------------------------------------------------------------------------------
checkout:     90bd20308b5705caa687acb2aab1f62a6c77a4bb 2014-02-07 08:58:55 UTC
leaf:         open
tags:         trunk
comment:      Add the .clone command to "fossil sqlite3". Taken from SQLite
              trunk. (user: jan.nijtmans)
changes:      None. Already up-to-date

C:\Localdata\workspace\fossil>fossil all rebuild
C:\Localdata\Tcl\bin\fossil.exe rebuild C:/Fossil/fossil.fossil
  100.0% complete...
C:\Localdata\Tcl\bin\fossil.exe rebuild C:/fossil/fossil.fossil
  100.0% complete...

C:\Localdata\workspace\fossil>