mercurial/HGDebugFlags.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 09 Mar 2013 22:29:37 +0000
changeset 256 49cce5802570
child 335 7e19ab19148b
permissions -rw-r--r--
Introduced HGDebugFlags. The pool HGDebugFlags contains debug flags for Mercurial. They can be controlled through the code or environment variables. Also, use of HG command server is now controlled using env variable.

"
 COPYRIGHT (c) 2012-2013 by Jan Vrany
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libscm/mercurial' }"

SharedPool subclass:#HGDebugFlags
	instanceVariableNames:''
	classVariableNames:'Debug Trace'
	poolDictionaries:''
	category:'SCM-Mercurial-Internal'
!

!HGDebugFlags class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2012-2013 by Jan Vrany
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
! !

!HGDebugFlags class methodsFor:'* uncategorized *'!

trace
    ^Trace

    "Created: / 03-03-2013 / 17:20:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!HGDebugFlags class methodsFor:'class initialization'!

initialize
    | debug trace |

    debug := OperatingSystem getEnvironment:'STX_LIBSCM_MERCURIAL_DEBUG'.
    Debug := debug notNil and:[debug ~= '0'].

    trace := OperatingSystem getEnvironment:'STX_LIBSCM_MERCURIAL_TRACE'.
    Trace := trace notNil and:[trace ~= '0'].

    "
     HGDebugFlags initialize
    "

    "Modified: / 09-03-2013 / 22:11:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!HGDebugFlags class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !


HGDebugFlags initialize!