# dspec-v2
# Copyright 2008,2011,2016 BitMover, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# The default dspec used by 'bk changes' and 'bk changes -v'

":INDENT:"		# 2 spaces + 2 in component
":DPN:@:REV:"
${1=:USERHOST:}		# 1 == user || user@host
$if (:CHANGESET: && !:COMPONENT_V:) {
	", :Dy:-:Dm:-:Dd: :T::TZ:, $1"
	${0=$1}		   	        # 0 == user of last cset
} $else {
	$if($0 != $1){			# print user if different from cset
		", $1"
	}
}
$unless (:CHANGESET:) {
	" +:LI: -:LD:"			# lines added/deleted
}
"\n"
$if ($9 -eq 0) {			# comments
	$each(:C:) {
		":INDENT:  (:C:)\n"
	}
} $else {
	":INDENT:  "
	$first(:C:)
	"\n"
}
$each(:TAGS:) {
	"  TAG: (:TAGS:)\n"
}
$if ($9 -eq 0) {
	$if (:MERGE:) {
		":INDENT:  MERGE: :MPARENT:\n"
	}
}
"\n"
