view cds-add @ 47:f6fe08729faf default tip

hgchurn: rename the alias file to the default name
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 09 Apr 2017 12:09:45 -0400
parents eaa1438adb09
children
line wrap: on
line source

#!/bin/bash

source cds

if [ $VCS = cvs ]; then
	# CVS
	$VCS_ADD "$@" >& /dev/null

	if [ $? -ne 0 ] ; then
		for x in "$@"
		do
			echo -e "Error adding \"$x\", file already tracked?"
		done
	fi

elif [ $VCS = svn ]; then
	# Subversion
	$VCS_ADD "$@" > /dev/null
fi