NOTE: Fossil recommends to create the branch at commit time
See also the Fossil fork!
# create or switch to vendor branch
fossil branch new $VENDOR_BRANCH
fossil update $VENDOR_BRANCH
mkdir -p $LOCAL_VENDOR_DIR
cd $LOCAL_VENDOR_DIR
rm -rfI *
import a bundle or a patch?
wget $ZIPFILE_URL
unzip $ZIPFILE
etc
# NOTE/TODO:
# Rename the directory if it contains version names!
fossil addremove --dotfiles
fossil commit --tag $TAG --branch $VENDOR_BRANCH -m "Import $VERSION from $VENDOR as $TAG"
fossil update taskbranch
fossil merge $TAG
edit $LOCAL_VENDOR_DIR/VENDOR.md # (unless VENDOR.sh runs the vendor drop)
VENDOR.md could also be a VENDOR.sh file that executes a vendor drop.
As the next vendor drops are similar, a script is recommended!
See this Fossil example
hack away
fossil update trunk
merge task branch
Fossil should autosync everything...