#NEWLINE# def generate( env ) : #NEWLINE# #INDENT# 'Add a Builder factory function and construction variables for\n    BitKeeper to an Environment.' #NEWLINE# def BitKeeperFactory( env = env ) : #NEWLINE# #INDENT# ' ' #NEWLINE# import SCons.Warnings as W #NEWLINE# W . warn ( W . DeprecatedSourceCodeWarning , 'The BitKeeper() factory is deprecated and there is no replacement.' ) #NEWLINE# act = SCons . Action . Action ( '$BITKEEPERCOM' , '$BITKEEPERCOMSTR' ) #NEWLINE# return SCons . Builder . Builder ( action = act , env = env ) #NEWLINE# #UNINDENT# env . BitKeeper = BitKeeperFactory #NEWLINE# env [ 'BITKEEPER' ] = 'bk' #NEWLINE# env [ 'BITKEEPERGET' ] = '$BITKEEPER get' #NEWLINE# env [ 'BITKEEPERGETFLAGS' ] = SCons . Util . CLVar ( '' ) #NEWLINE# env [ 'BITKEEPERCOM' ] = '$BITKEEPERGET $BITKEEPERGETFLAGS $TARGET'