387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
|
dict set finfo $parentStr child $dirPath 1
dict set finfo $parentStr isfile 0
dict set finfo $parentStr isdir 1
dict set finfo $parentStr type directory
set parentStr [file join $parentStr $dirPath]
}
}
# TBD: Any way to get file sizes and mtimes from HG?
cd $oldpwd
# Generate a mount point.
set tail [string range $dir [string length $root] end]
set mountpoint "${root} ($rev)"
|
>
>
>
>
>
>
|
>
>
>
>
>
>
>
>
>
>
|
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
|
dict set finfo $parentStr child $dirPath 1
dict set finfo $parentStr isfile 0
dict set finfo $parentStr isdir 1
dict set finfo $parentStr type directory
set parentStr [file join $parentStr $dirPath]
}
}
# TBD: Any way to get file sizes and mtimes from HG?
# Try using the hglist extension
set cmd [list hg ls --template "{size} {date} {name}\n" -a \
--recursive -r $rev]
if {![catch {exec {*}$cmd} allfiles]} {
# Expected line format:
# size date name
foreach line [split $allfiles \n] {
if {[regexp {^(\d+)\s+(\d+)\S*\s+(\S.*)$} $line -> size mtime fName]} {
# Check that it matches something filled in from the manifest
if {[dict exists $finfo $fName]} {
dict set finfo $fName "mtime" $mtime
dict set finfo $fName "size" $size
}
}
}
}
cd $oldpwd
# Generate a mount point.
set tail [string range $dir [string length $root] end]
set mountpoint "${root} ($rev)"
|