# eric6.Plugins.VcsPlugins.vcsMercurial.HgUtilities

Module implementing some common utility functions for the Mercurial package.

### Global Attributes

None

### Classes

None

### Functions

getConfigPath | Public function to get the filename of the config file.
hgVersion | Public method to determine the Mercurial version.
prepareProcess | Public function to prepare the given process.

## getConfigPath

getConfigPath()

Public function to get the filename of the config file.

Returns:
  filename of the config file (string)

Up

## hgVersion

hgVersion(plugin)

Public method to determine the Mercurial version.

plugin (VcsMercurialPlugin)
  reference to the plugin object

Returns:
  tuple containing the Mercurial version as a string and as a tuple and an error message.

Return Type:
  tuple of str, tuple of int and str

Up

## prepareProcess

prepareProcess(proc, encoding="", language="")

Public function to prepare the given process.

proc
  reference to the process to be prepared (QProcess)
encoding
  encoding to be used by the process (string)
language
  language to be set (string)

Up