#! /bin/sh

# This script is part of CVS Utilities, version 0.2.5.
# This script discards all local changes and reloads missing files.

set -e

echo "cvsdiscard: cleaning up ..."
cvsu --ignore --find --types 'GMO' --batch "rm -rf" "$@"

echo "cvsdiscard: refetching missing files ..."
cvsu --ignore --find --types 'U' --batch "cvs update" "$@"

echo "cvsdiscard: done"
