FWIW, the following pre-commit hook (put in $repo_dir/hooks) will
prevent users from committing the base package directories.
#!/bin/bash
# Path for svnlook (if needed)
PATH="${PATH}:/usr/local/bin"
base=$(svnlook changed -t "$2" "$1" | grep '^A.*XPS_.*base/$')
if [ -n "${base}" ]
then
echo "Cannot add '${base##* }' directory to repository." >&2
exit 1
fi
Dave
On Aug 19, 2008, at 14:57 , Jason Manley wrote:
Please do not check the full implementation and BEE_XPS_base
directories into the CASPER SVN for your projects. You should not
need to check in more than the .mdl and .bit or .bof files.
It creates a bloated repository full of unnecessary files that
nobody will use.
If you are concerned about being able to work inside of your SVN
sandbox and still commit changes, this should still be possible
with most clients, using one of the following techniques:
1) The easiest is to explicitly disable checking-in of non-pre-
existing files (so the first time you create a project, you will
need to specify which files are to be versioned manually).
2) Only allow the check-in of .mdl, .bof and .bit files into the
projects directory.
3) Create an exclusions file which lists the netlist, src, sysgen
and XPS_BEE2_usr_base subdirectories.
In the unlikely event of your particular project requiring a
customised base project, you are of course more than welcome to
check this into SVN - just ignore this email!
Jason