| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Development.HgRev
- hgRevState :: FilePath -> IO (Maybe (HgRev, HgState))
- hgRev :: FilePath -> IO (Maybe HgRev)
- hgState :: FilePath -> IO (Maybe HgState)
- hgShortRev :: HgRev -> String
- hgIsDirty :: HgState -> Bool
- data HgRev = HgRev {
- hgRevision :: String
- hgBranch :: String
- hgTags :: [String]
- hgBookmarks :: [String]
- data HgState
Documentation
Arguments
| :: FilePath | Path anywhere within the repository |
| -> IO (Maybe (HgRev, HgState)) | Nothing is returned if no repo or |
Get the hg revision and working directory state for a given repo.
Arguments
| :: FilePath | Path anywhere within the repository |
| -> IO (Maybe HgRev) | Nothing is returned if no repo or |
Get the hg revision for a given repo.
Arguments
| :: FilePath | Path anywhere within the repository |
| -> IO (Maybe HgState) | Nothing is returned if no repo or |
Get the hg working directory state for a given repo.
hgShortRev :: HgRev -> String Source
Get the hg short revision which is the first 12 hex characters of the hash.
Constructors
| HgRev | |
Fields
| |