Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2014-01-06 19:48:42
Size: 347
Editor: Tovim
Comment:
Revision 7 as of 2014-01-07 11:03:53
Size: 2353
Editor: Tovim
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]] &mdash; 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 &mdash; Files {{{.hg/store/00changelog.i}}} and {{{.hg/store/00changelog.d}}}
    Contains all changesets. Stored in revlog format.
 * A revlog per tracked file &mdash; 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]] &mdash; File {{{.hg/dirstate}}}
    Tracks various information about the working directory.
 * The [[RequiresFile|requires file]] &mdash; 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]]

Význam pojmů repozitórium, pracovní kopie - viz Základní pojmy Mercuriálu.

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.

Viz také


CategoryGlossary

Français

CzechRepository (last edited 2014-01-10 15:31:17 by Tovim)