git/GitIndexHandle.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 29 Mar 2018 22:22:31 +0100
changeset 816 1d895084db29
parent 481 0cfef855baa2
permissions -rw-r--r--
Fixed `HGChangeset >> #successors` for Mercurial < 4.1 ...which does not support `successors()` in revset. In this case, return an empty successors and don't show "reconcile" button in commit dialog. There well may be other way to get successors on Mercurial 4.0, just I'm not aware of it. Once found, this limitation will be lifted.

"{ Package: 'stx:libscm/git' }"

ExternalAddress subclass:#GitIndexHandle
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'SCM-Git-Core-Internal-Handles'
!


!GitIndexHandle class methodsFor:'accessing'!

libraryName

    OperatingSystem isUNIXlike ifTrue:[^'libgit2.so'].

    OperatingSystem isMSWINDOWSlike ifTrue:[^'git2.dll'].

    self error:'Library name for host OS is not known'
!

structSize
    "Returns size of undelaying structure in bytes"

    ^0
! !

!GitIndexHandle class methodsFor:'documentation'!

version_GIT
    "Never, ever change this method. Ask JV or CG why"
    ^thisContext method mclass theNonMetaclass instVarNamed: #revision
!

version_SVN
    ^ '$Id$'
! !