999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
|
# Fossil. The fileNames argument is a list of (fully?) qualified
# local file names to stage.
#
proc stagePackageFiles { language version platform fileNames } {
variable checkoutDirectory
variable fossilAddCommand
verifyCheckoutDirectory
if {![verifyThereAreNoChanges]} then {
error "cannot stage files: there are pending changes"
}
if {![verifyThisIsTheCorrectProject]} then {
error "cannot stage files: wrong project"
}
if {![verifyThisIsTheCorrectBranch]} then {
changeToTheCorrectBranch
if {![verifyThisIsTheCorrectBranch]} then {
error "cannot stage files: still on wrong branch"
}
}
set targetDirectory [file join \
$checkoutDirectory $language $version $platform]
set relativeFileNames [getRelativeFileNames $fileNames 2]
foreach fileName $fileNames relativeFileName $relativeFileNames {
file mkdir [file join \
$targetDirectory [file dirname $relativeFileName]]
|
>
>
>
>
>
>
>
|
|
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
|
# Fossil. The fileNames argument is a list of (fully?) qualified
# local file names to stage.
#
proc stagePackageFiles { language version platform fileNames } {
variable checkoutDirectory
variable fossilAddCommand
::PackageDownloader::verifyLanguageAndVersion $language $version isClient
if {$isClient} then {
error "cannot stage files: client files must be committed directly"
}
::PackageDownloader::verifyPlatform $platform platform
verifyCheckoutDirectory
if {![verifyThereAreNoChanges]} then {
error "cannot stage files: there are pending changes"
}
if {![verifyThisIsTheCorrectProject]} then {
error "cannot stage files: wrong project"
}
if {![verifyThisIsTheCorrectBranch]} then {
changeToTheCorrectBranch
if {![verifyThisIsTheCorrectBranch]} then {
error "cannot stage files: still on wrong branch"
}
}
set targetDirectory [file join \
$checkoutDirectory packages $language $version $platform]
set relativeFileNames [getRelativeFileNames $fileNames 2]
foreach fileName $fileNames relativeFileName $relativeFileNames {
file mkdir [file join \
$targetDirectory [file dirname $relativeFileName]]
|