Size: 347
Comment:
|
← Revision 8 as of 2014-01-10 15:31:17 ⇥
Size: 2293
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
Význam pojmů ''repozitórium'', ''pracovní kopie'' - viz ''[[CzechUnderstandingMercurial|Základní pojmy Mercuriálu]]''. <<TableOfContents>> |
|
Line 5: | Line 10: |
some intro | Termínem '''repozitář''' označujeme složku '''.hg''' v adresáři projektu, zvaném ''repozitórium''. Pro praktické použití obsahuje tato věta vše, co potřebujeme o repozitáři vědět. Se složkou .hg se nemá manipulovat. |
Line 7: | Line 12: |
<<TableOfContents>> | Složka .hg je ve skutečnosti složitá struktura, jak lze usoudit z následujícího (neúplného) výčtu jejích položek: |
Line 9: | Line 14: |
== Vytvoření == | * The [[Manifest|manifest]] — Files {{{.hg/store/00manifest.i}}} and {{{.hg/store/00manifest.d}}} Describes the file contents of the repository at a particular changeset ID. Stored in [[Revlog|revlog]] format. * The changelog — Files {{{.hg/store/00changelog.i}}} and {{{.hg/store/00changelog.d}}} Contains all changesets. Stored in revlog format. * A revlog per tracked file — Files {{{.hg/store/data/<encoded path>.i}}} and {{{.hg/store/data/<encoded path>.d}}} {{{<encoded path>}}} is the path of the tracked file in the working directory, encoded according to [[CaseFoldingPlan]]. * The [[DirState|dirstate]] — File {{{.hg/dirstate}}} Tracks various information about the working directory. * The [[RequiresFile|requires file]] — File {{{.hg/requires}}} Specifies the capabilities needed by a client to access this repository |
Line 11: | Line 25: |
Note that for small revlogs, the revlog data file ({{{*.d}}}) may be missing, because its content may be interleaved into the corresponding index file ({{{*.i}}}) (see also [[RevlogNG]]). == Vytvoření repozitáře == Repozitář lze vytvořit klonováním existujcícího repozitória příkazem `hg clone`, což vytvoří kopii projektového adresáře včetně složky .hg nebo lze v existujícím adresáři projektu vytvořit příkazem `hg init` složku .hg, což z běžného pracovního adresáře vytvoří vnímavý pracovní adresář Mercuriálu, zvaný ''repozitórium''. Vnitřní integritu repozitáře ověříme příkazem `hg verify`. |
|
Line 14: | Line 36: |
* [[RepositoryNaming]] | |
Line 20: | Line 41: |
---- CategoryGlossary [[FrenchRepository|Français]] |
Význam pojmů repozitórium, pracovní kopie - viz Základní pojmy Mercuriálu.
Contents
Repozitář
Termínem repozitář označujeme složku .hg v adresáři projektu, zvaném repozitórium. Pro praktické použití obsahuje tato věta vše, co potřebujeme o repozitáři vědět. Se složkou .hg se nemá manipulovat.
Složka .hg je ve skutečnosti složitá struktura, jak lze usoudit z následujícího (neúplného) výčtu jejích položek:
The manifest — Files .hg/store/00manifest.i and .hg/store/00manifest.d
Describes the file contents of the repository at a particular changeset ID. Stored in revlog format.
The changelog — Files .hg/store/00changelog.i and .hg/store/00changelog.d
- Contains all changesets. Stored in revlog format.
A revlog per tracked file — Files .hg/store/data/<encoded path>.i and .hg/store/data/<encoded path>.d
<encoded path> is the path of the tracked file in the working directory, encoded according to CaseFoldingPlan.
The dirstate — File .hg/dirstate
- Tracks various information about the working directory.
The requires file — File .hg/requires
- Specifies the capabilities needed by a client to access this repository
Note that for small revlogs, the revlog data file (*.d) may be missing, because its content may be interleaved into the corresponding index file (*.i) (see also RevlogNG).
Vytvoření repozitáře
Repozitář lze vytvořit klonováním existujcícího repozitória příkazem hg clone, což vytvoří kopii projektového adresáře včetně složky .hg nebo lze v existujícím adresáři projektu vytvořit příkazem hg init složku .hg, což z běžného pracovního adresáře vytvoří vnímavý pracovní adresář Mercuriálu, zvaný repozitórium.
Vnitřní integritu repozitáře ověříme příkazem hg verify.