by
Changes to 24 files · Browse files at a461a895d4ca Showing diff from parent 81e9adc8efb2 d2ec324d789c Diff from another changeset...
|
@@ -100,7 +100,7 @@ ; Linux only diff tools, listed here for reference
bcompare.priority=-1
bcompare.args=$local $other $base -mergeoutput=$output -ro -lefttitle=parent1 -centertitle=base -righttitle=parent2 -outputtitle=merged -automerge -reviewconflicts -solo
-beyondcompare3.premerge=False
+bcompare.premerge=False
bcompare.gui=True
bcompare.diffargs=-lro -lefttitle='$plabel1' -righttitle='$clabel' -solo -expandall $parent $child
bcompare.diff3args=$parent1 $parent2 $child -lefttitle='$plabel1' -centertitle='$clabel' -righttitle='$plabel2' -solo -expandall
|
@@ -56,6 +56,7 @@ ;pager =
;parentrevspec =
;patchbomb =
+;progress =
;purge =
;rebase =
;record =
@@ -67,6 +68,9 @@; Extra extensions bundled with TortoiseHg
;fold =
;hgcr-gui =
+;perfarce =
+;hgeol =
+;mercurial_keyring =
;
; Define external diff commands, for hg command line use only
|
|
@@ -1,5 +0,0 @@ - ; User specific Mercurial config file.
-; See the hgrc man page for details.
-
-[ui]
-username = {hgusername}
|
@@ -33,6 +33,7 @@ echo.and where ^<lang^> is one of
echo. en to make target in English ^(default^)
echo. ja to make target in Japanese
+ echo. cs to make target in Czech
goto end
)
|
|
|
- Changelog
+Changelog
=========
.. module:: changelog.dialog
:synopsis: Dialog used to view log
Nástroj changelog nalezneme v kontextové nabídce pod názvem **HG Průzkumník repozitáře**. Používá se k zobrazení revizí (changesetů) repozitáře a k jejich správě. Okno procedury obsahuje přehledný graf, v němž lze vidět u každé změny vztah rodič-dítě. U každé revize lze také prohlížet změny u souborů.
.. figure:: figures/log.png
:alt: Changelog
Prohlížeč repozitáře se skrytou nástrojovou lištou
Stručný popis příkazů v liště hlavní nabídky:
:guilabel:`Nástroje`
Otevře přístup k dalším osmi příkazům TortoiseHg
:guilabel:`Zobrazení`
Přepínače viditelnosti nástrojových lišt a aktualizace pohledů
:guilabel:`Navigovat`
Nástroj pro výběr určitých changesetů v historii repozitáře
:guilabel:`Synchronizovat`
Přístup k synchronizačním funkcím
:guilabel:`Nápověda`
Přístup k otevření webového prohlížeče a informaci "O programu"
Tlačítka nástrojové lišty zleva doprava (poslední tři jsou viditelné pouze při zpřístuněné extenzi MQ):
:guilabel:`Obnovit`
Znovu načíst historii revizí (pro komit z jiného okna, atp)
:guilabel:`Fronta oprávek`
Přepíná zobrazení panelu MQ.
:guilabel:`Načíst další revize`
Načíst do zobrazení dalších *n* revizí
:guilabel:`Načíst všechny revize`
Načíst všechny zbývající revize do zobrazení
Synchronizační lišta
---------------------
.. figure:: figures/syncbar.png
:alt: Changelog
Synchronizační prvky v Průzkumníku repo
Zleva doprava:
:guilabel:`Příchozí`
Stáhnout příchozí changesety ze vzdáleného repozitáře, uložit je v dočasném svazku a zobrazit je v náhledu. Příchozí changesety jsou v grafu revizí označeny šipkou dolů.
:guilabel:`Přijmout`
Přijmout changesety ze zobrazeného svazku. Toto tlačítko je citlivé jen po realizovaném náhledu. Nastavení "Po akci pull" je při provádění tohoto příkazu respektováno.
:guilabel:`Odmítnout`
Odmítnout zobrazené changesety. Toto tlačítko je citlivé jen po realizovaném náhledu.
:guilabel:`Pull`
Převzít příchozí changesety ze vzdáleného repozitáře, potom uplatnit nastavení "Po akci pull" (viz dále).
:guilabel:`Odchozí`
Určit odchozí changesety, které mají být odeslány do vzdáleného repozitáře. Odchozí changesety jsou označeny šipkou nahoru.
:guilabel:`Push`
Odeslat odchozí changesety do vzdáleného repozitáře.
:guilabel:`Email`
Odeslat odchozí changesety do vzdáleného repozitáře emailem.
:guilabel:`Stop`
Zastavit probíhající transakci. Tlačítko je citlivé jen u odchozích příkazů.
Napravo od tlačítka Stop je rozbalovací seznam obsahující všechny nastavené cesty k jiným repozitářům. Implicitně zobrazená cesta musí být předem nastavena. Podrobnosti o stanovení URL pro vzdálené repozitáře viz `hg.1.html#urls <http://www.selenic.com/mercurial/hg.1.html#urls>`_ .
Napravo od rozbalovacího seznamu je přepínač :guilabel:`Po akci pull`, v němž lze nastavit *Nic* nebo *Aktualizovat* po úkonu pull, spuštěného ze synchronizační lišty. Další volby (fetch, rebase) lze do tohoto přepínače přidat připuštěním extenze v konfiguračním souboru Mercurial.ini anebo - viz dále.
Napravo od přepínače :guilabel:`After Pull` je tlačítko :guilabel:`Nastavení`. Otevírá okno pro konfiguraci repozitáře, kde na záložce :guilabel:`Sync` lze přidat další možnosti do přepínače "Po akci pull" a rovněž lze zde zadat cesty ke vzdáleným repozitářům.
Changesety, přidané do repozitáře po otevření průzkumníka repozitáře, jsou v grafu označeny zelenými hvězdičkami. Týká se to posledních komitů, přijmutých changesetů a aplikovaných oprávek. Šipky a hvězdičky z gravu odstraníme použitím volby :guilabel:`Zobrazení -> Vrátit značky na původní nastavení`.
Vyhledávací lišta
-----------------
.. figure:: figures/searchbar.png
:alt: Changelog
Prvky vyhledávací lišty
Vyhledávací lišta umožňuje rychlé nastavení filtrů. Tlačítka zleva doprava (changeset = revize):
:guilabel:`Vše`
Zobrazit všechny changesety v repozitáři. Tato volba vlastně odstraní všechny filtry.
:guilabel:`Značené`
Zobrazit pouze changesety s tagy
:guilabel:`Původ`
Zobrazit pouze předky aktuálně vybraného changesetu.
:guilabel:`Rodiče`
Zobrazit pouze rodičovské revize pracovního adresáře.
Nebude-li probíhat "sloučení", bude to jenom jedna verze.
:guilabel:`Čela`
Zobrazit jen čela (heads) v repozitáři.
:guilabel:`Sloučení`
Zobrazit pouze changesety vzniklé sloučením (changesety se dvěma rodiči).
:guilabel:`Skrýt sloučení`
Zatržítko pro nezobrazování sloučených changesetů
:guilabel:`Větve...`
Výběrový seznam pojmenovaných větví v repozitáři. Jména lze nastavit v *Nastavení repozitáře -> Changelog -> Mrtvé větve*.
Na konci lišty je výběrový seznam pěti různých typů filtrů.
:guilabel:`Rozsah revizí`
Vybrat ze seznamu zadaný rozsah revizí (m:n). Určení rozsahu revizí - viz `hg.1.html#revisions <http://www.selenic.com/mercurial/hg.1.html#revisions>`_
:guilabel:`Vzory souborů`
Prohledat seznam pro zadané jméno souboru. Určování vzorů jmen souborů - viz `hg.1.html#patterns <http://www.selenic.com/mercurial/hg.1.html#patterns>`_
:guilabel:`Klíčová slova`
Prohledat seznam pro klíčové slovo, které se porovnává s metadaty changesetů (komitent, zpráva, atp).
:guilabel:`Datum` Prohledat seznam pro datumový interval. Jeho určování - viz `hg.1.html#dates <http://www.selenic.com/mercurial/hg.1.html#dates>`_
:guilabel:`Uživatel`
Prohledat seznam pro zadaného uživatele nebo komitenta.
Pro zvolený typ filtru zadáme do vedlejšího textového pole vyhledávací řetězec.
Podrobnosti grafu
-----------------
Sloupec **Graf** ukazuje vztahy dítě-rodič pro všechny revize v historii repozitáře. Tento sloupec se rozšiřuje podle potřeby.
Kontextové nabídky u revizí
---------------------------
Pravý klik na zvýrazněné revizi otevře kontextovou nabídku:
:guilabel:`Otevřít VDiff`
otevřít changeset v prohlížeči "VDiff"
:guilabel:`Zobrazit changeset`
otevřít changeset v diffovém prohlížeči "status"
:guilabel:`VDiff k aktuálnímu`
zobrazit změny mezi označenou revizí a aktuální revizí
:guilabel:`Kopírovat hash do schránky`
zkopírovat celý hash označené revize do schránky
:guilabel:`Aktualizovat`
aktualizovat pracovní adresář k této revizi [#rcm1]_
:guilabel:`Sloučit s ...`
sloučit vybranou revizi s aktuální [#rcm2]_
:guilabel:`Export oprávky`
generovat soubor (patch file) obsahující změny této revize
:guilabel:`Email oprávky`
poslat změny této revize emailem [#rcm3]_
:guilabel:`Svazek revize:tip`
vytvořit svazek obsahující revize od označené po "tip"
:guilabel:`Přidat/odebrat tag`
otevřít dialog pro přidání/odebrání tagu
:guilabel:`Odvolání revize`
vytvořit odvolací changeset pro vybranou revizi
:guilabel:`Revert`
vrátit obsah všech pracovních souborů k vybrané revizi bez aktualizace pracovního adresáře rodičovské revize; používat opatrně
:guilabel:`Archivovat revizi`
otevřít dialog pro archivování vybrané revize, čímž je umožněno vytvořit záložní kopii repozitáře
:guilabel:`Transplant to local`
Přenést vybranou revizi do aktuálního pracovního rodiče.
*Volba je viditelná jen při zpřístupněné extenzi 'transplant'*
:guilabel:`QImport Revision`
Importovat vybranou revizi do aktuální fronty vsuvek (patch queue). Platí jen pro qbase nebo vybranou čelní revizi. *Volba je viditelná jen při zpřístupněné extenzi 'MQ'*
:guilabel:`Odtrhnout revizi...`
Odstranint z repozitáře vybranou revizi a všechny její potomky [#rcm4]_. *Volba je viditelná jen při zpřistupněné extenzi 'MQ'*
Klikneme-li pravou myší na jiném než zvýrazněném řádku, dostaneme další kontextovou nabídku příkazů, které pracují s rozsahy revizí.
:guilabel:`Diff odsud k vybranému`
Otevře okno "status" s kumulovanými změnami zadaného rozsahu changesetů. Prohlížeč umožňuje uložit vybrané porce změn do souboru.
:guilabel:`VDiff odsud k vybranému` [#rcm5]_
Otevře okno "VDiff" s kumulativními změnami zadaného rozsahu changesetů.
:guilabel:`Emailem odsud k vybranému`
Otevře vytvoření emailu pro odeslánízadaného rozsahu changesetů.
:guilabel:`Svazek odsud k vybranému`
Vytvoří soubor se svazkem zadaného rozsahu changesetů.
:guilabel:`Exportovat oprávky odsud k vybranému`
Vytvoří soubory se vsuvkami pro každý chanteset zadaného rozsahu.
:guilabel:`Sloučit s ...` [#rcm6]_
Sloučí označenou revizi s další vybranou revizí.
:guilabel:`Transplant revision range to local`
Přemístí vybraný rozsah changesetů k aktuálnímu pracovnímu rodičovskému adresáři. *Volba je viditelná jen při zpřístupněné extenzi 'transplant'*.
:guilabel:`Rebase on top of selected`
Přeskupí (rebase) vybraný changeset a předky nad původně vybranou revizi. *Volba je viditelná jen při zpřístupněné extenzi 'transplant'*.
:guilabel:`qimport from here to selected`
Importovat vybraný rozsah revizí do aktuální fronty oprávek. *Volba je viditelná jen při zpřístupněné extenzi 'MQ'*.
:guilabel:`Vybrat společného předka`
Ukáže společného předka zadaného rozsahu revizí
.. [#rcm1] Otevře dialog "aktualizovat" pro danou revizi.
.. [#rcm2] Otevře dialog "slučování" pro danou revizi.
.. [#rcm3] Otevře vytvoření mailu s danou revizi.
.. [#rcm4] Příkaz uloží odtržené revize ve svazku do souboru, který může být později použit. Viz `také <http://mercurial.selenic.com/wiki/EditingHistory>`_.
.. [#rcm5] :menuselection:`Globální nastavení -> TortoiseHg -> Nástroj Visual Diff`
.. [#rcm6] Jedna z označených revizí musí být rodič aktuálního pracovního adresáře.
Kontextové nabídky u souborů
----------------------------
Pravý klik na souboru v seznamu vlevo dole otevře kontextovou nabídku dalších voleb:
:guilabel:`Vizuální Diff`
Pro zadaný soubor otevře nastavený nástroj "VDiff"
:guilabel:`VDiff k aktuálnímu`
Zobrazit rozdíly mezi vybranou revizí a aktuální revizí
:guilabel:`Otevřít revizi`
Otevřít revizi označeného souboru v textovém editoru [#flcm1]_
:guilabel:`Uložit revizi`
Zapsat revizi vybraného souboru do nového souboru.
:guilabel:`Historie souboru`
Ukázat revize, které upravovaly tento soubor [#flcm2]_
:guilabel:`Anotace souboru`
Otevřít soubor v proceduře "datamine"
:guilabel:`Vrátit obsah souboru`
Vrátit stav vybraného souboru do stavu označené revize [#flcm3]_
.. [#flcm1] :menuselection:`Globální nastavení -> TortoiseHg -> Grafický (textový) editor`
.. [#flcm2] Neukazuje revize smazaných souborů, neboť tato změna je pouze manifestační, která nemění historii souboru.
.. [#flcm3] Nový obsah se projeví jako lokální změna a musí být komitován.
Prohlížení changesetů
---------------------
Prohlížeč changesetů zobrazuje z úsporných důvodů diffy jenom jednoho souboru. Chceme-li vidět diffy všech souborů najednou,
klikneme na řádek * [Všechny soubory].
Prohlížeč také vypustí zobrazení nadrozměrných diffů - viz
:menuselection:`Globální nastavení -> TortoiseHg -> Max velikost diffu`. Limit velikosti lze dočasně vypnout přepnutím volby
:menuselection:`Zobrazení
-> Ignorovat max velikost diffu`.
Podobně jako v nástroji 'Changelog' a 'Datamine' se diffy zobrazují i v nástrojích 'Commit' a 'Shelve'. U nich se navíc pravé pole pro zobrazení diffů skládá z několika záložek.
Analýza průvodních zpráv
------------------------
(záměrně nepřeloženo)
New in TortoiseHg 0.10, the repository browser will detect and underline
changeset hashes and bug report identifiers inside changeset messages. These
underlined phrases are clickable links.
Every word-boundary delimited string of 12 or 40 characters from the
range [0-9a-f] is considered a changeset link. Clicking on it in the
repository explorer will jump to the given changeset if possible.
Issue tracker links are enabled when configured in the tortoisehg
section of the configuration files. There are two keys: issue.regex
and issue.link. The first defines the regex to match when picking up
issue numbers, while the second defines the command to run when an
issue number is recognized.
You may include groups in issue.regex, and corresponding {n} tokens
in issue.link (where n is a non-negative integer). {0} refers to the
entire string matched by issue.regex, while {1} refers to the first
group and so on. If no {n} tokens are found in issue.link, the entire
matched string is appended instead.
Examples::
BitBucket:
issue.regex = #(\d+)\b
issue.link = http://bitbucket.org/<your project and repo>/issue/{1}/
Mercurial:
issue.regex = \bissue\d+\b
issue.link = http://mercurial.selenic.com/bts/
Klávesová navigace
-------------------
:kbd:`Ctrl-P`
Přesunout zvýraznění řádku na aktuální revizi pracovního adresáře
:kbd:`Ctrl-D`
Aktivovat 'VDiff' pro vybraný changeset nebo soubor
:kbd:`Ctrl-R`
Aktualizovat obsah repozitáře
:kbd:`Ctrl-G`
Přejít k určíté revizi
Nastavitelné parametry
----------------------
Průzkumník repozitáře má několik nastavitelných parametrů, které mohou být určeny v dialogu Nastavení ... na záložce Changelog:
:guilabel:`Zabarvení podle autora`
Zadáno-li true, mění se barvy changesetů podle autora
:guilabel:`Dlouhý souhrn`
Zadáno-li true, spojují se řádky zpráv komitů až do délky 80 znaků
:guilabel:`Velikost dávky logu`
Počet revizí načtených a zobrazených v prohlížeči v jedné dávce
:guilabel:`Kopírovat hash`
Zadáno-li true, lze kopírovat ID (hash) changesetů do schránky
:guilabel:`Mrtvé větve`
Seznam čárkami oddělených jmen, které mají být při sestavování seznamu jmen větví pro repozitář ignorovány
:guilabel:`Zabarvení větví`
Seznam čárkami oddělených jmen větví a barev ve formě 'branch:#XXXXXX'. Mezery a dvojtečky ve jménu větve musí být předznamenány zpětnými lomítky (\\). Podobně mohou být předznamenány i některé další znaky, např \\u0040 bude dekódováno na znak @ a \\n na 'linefeed'.
:guilabel:`Skrýt tagy`
Seznam čárkami oddělených tagů, které se nebudou zobrazovat. Užitečný příklad: zadejte "qbase, qparent, qtip" pro skrytí standardních tagů, vkládaných extenzí MQ.
:guilabel:`Použít expandér`
Zadáno-li true, zobrazují se detaily changesetu pod expandérem.
Přidělení barvy jednotlivým uživatelů lze nastavit přidáním řádků do konfiguračního souboru Mercurial.ini: ::
[tortoisehg]
authorcolor.USERNAME = color
Prohlížeč changesetů také respektuje následující volby na záložce TortoiseHg v Nastavení repozitáře:
:guilabel:`Šířka záložky`
Nastavení šířky záložek (v počtu míst)
:guilabel:`Max velikost diffu`
Maximální velikost diffovaného souboru
:guilabel:`Diff panel dole`
Zobrazit panel diff pod seznamem souborů
Otevření z příkazového řádku
----------------------------
::
hgtk log [OPTIONS] [FILE]
alias: history
changelog viewer
options:
-l --limit limit number of changes displayed
globální možnosti viz "hgtk -v help log"
.. vim: noet ts=4
|
@@ -1,4 +1,4 @@ - Klonování repozitáře
+Klonování repozitáře
====================
.. module:: clone.dialog
|
|
|
|
@@ -1,200 +1,190 @@ - # -*- coding: utf-8 -*-
-#
-# thg_doc documentation build configuration file, created by
-# sphinx-quickstart on Thu Dec 03 19:01:03 2009.
-#
-# This file is execfile()d with the current directory set to its containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-import sys, os
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.append(os.path.abspath('.'))
-
-# -- General configuration -----------------------------------------------------
-
-# Add any Sphinx extension module names here, as strings. They can be extensions
-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc']
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = ['.templates']
-
-# The suffix of source filenames.
-source_suffix = '.txt'
-
-# The encoding of source files.
-source_encoding = 'utf-8'
-
-# The master toctree document.
-master_doc = 'index'
-
-# General information about the project.
-project = u'TortoiseHg'
-copyright = u'2009, Steve Borho and others'
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '0.10'
-# The full version, including alpha/beta/rc tags.
-release = '0.10.0'
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-language = 'cs'
-
-# There are two options for replacing |today|: either, you set today to some
-# non-false value, then it is used:
-#today = ''
-# Else, today_fmt is used as the format for a strftime call.
-#today_fmt = '%B %d, %Y'
-
-# List of documents that shouldn't be included in the build.
-#unused_docs = []
-
-# List of directories, relative to source directory, that shouldn't be searched
-# for source files.
-exclude_trees = []
-
-# The reST default role (used for this markup: `text`) to use for all documents.
-#default_role = None
-
-# If true, '()' will be appended to :func: etc. cross-reference text.
-#add_function_parentheses = True
-
-# If true, the current module name will be prepended to all description
-# unit titles (such as .. function::).
-#add_module_names = True
-
-# If true, sectionauthor and moduleauthor directives will be shown in the
-# output. They are ignored by default.
-#show_authors = False
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
-
-# A list of ignored prefixes for module index sorting.
-#modindex_common_prefix = []
-
-
-# -- Options for HTML output ---------------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. Major themes that come with
-# Sphinx are currently 'default' and 'sphinxdoc'.
-#html_theme = 'default'
-html_style = 'default.css'
-# Theme options are theme-specific and customize the look and feel of a theme
-# further. For a list of options available for each theme, see the
-# documentation.
-#html_theme_options = {}
-
-# Add any paths that contain custom themes here, relative to this directory.
-#html_theme_path = []
-
-# The name for this set of Sphinx documents. If None, it defaults to
-# "<project> v<release> documentation".
-#html_title = None
-
-# A shorter title for the navigation bar. Default is the same as html_title.
-#html_short_title = None
-
-# The name of an image file (relative to this directory) to place at the top
-# of the sidebar.
-html_logo = 'figures/thg_logo_95x50.png'
-
-# The name of an image file (within the static path) to use as favicon of the
-# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
-# pixels large.
-#html_favicon = None
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['.static']
-
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-#html_last_updated_fmt = '%b %d, %Y'
-
-# If true, SmartyPants will be used to convert quotes and dashes to
-# typographically correct entities.
-#html_use_smartypants = True
-
-# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
-# Additional templates that should be rendered to pages, maps page names to
-# template names.
-#html_additional_pages = {}
-
-# If false, no module index is generated.
-#html_use_modindex = True
-
-# If false, no index is generated.
-#html_use_index = True
-
-# If true, the index is split into individual pages for each letter.
-#html_split_index = False
-
-# If true, links to the reST sources are added to the pages.
-#html_show_sourcelink = True
-
-# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
-
-# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
-#html_show_copyright = True
-
-# If true, an OpenSearch description file will be output, and all pages will
-# contain a <link> tag referring to it. The value of this option must be the
-# base URL from which the finished HTML is served.
-#html_use_opensearch = ''
-
-# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
-#html_file_suffix = ''
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = 'TortoiseHg'
-
-
-# -- Options for LaTeX output --------------------------------------------------
-
-# The paper size ('letter' or 'a4').
-#latex_paper_size = 'letter'
-
-# The font size ('10pt', '11pt' or '12pt').
-#latex_font_size = '10pt'
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title, author, documentclass [howto/manual]).
-latex_documents = [
- ('index', 'TortoiseHg.tex', ur'TortoiseHg Documentation',
- ur'Steve Borho and others', 'manual'),
-]
-
-# The name of an image file (relative to this directory) to place at the top of
-# the title page.
-latex_logo = 'figures/thg_logo_pdf.png'
-
-# For "manual" documents, if this is true, then toplevel headings are parts,
-# not chapters.
-#latex_use_parts = False
-
-# Additional stuff for the LaTeX preamble.
-#latex_preamble = ''
-
-# Documents to append as an appendix to all manuals.
-#latex_appendices = []
-
-# If false, no module index is generated.
-#latex_use_modindex = True
+# -*- coding: utf-8 -*-
+#
+# TortoiseHg documentation build configuration file, created by
+# sphinx-quickstart on Tue Jul 21 23:42:44 2009.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# The contents of this file are pickled, so don't put values in the namespace
+# that aren't pickleable (module imports are okay, they're removed automatically).
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+
+# If your extensions (or modules documented by autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.append(os.path.abspath('.'))
+
+# General configuration
+# ---------------------
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['.templates']
+
+# The suffix of source filenames.
+source_suffix = '.txt'
+
+# The encoding of source files.
+source_encoding = 'utf-8'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'TortoiseHg'
+copyright = u'2010, Steve Borho and others'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '0.10'
+# The full version, including alpha/beta/rc tags.
+release = '0.10.0'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+language = 'cs'
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of documents that shouldn't be included in the build.
+#unused_docs = []
+
+# List of directories, relative to source directory, that shouldn't be searched
+# for source files.
+exclude_trees = []
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+
+# Options for HTML output
+# -----------------------
+
+# The style sheet to use for HTML and HTML Help pages. A file of that name
+# must exist either in Sphinx' static/ path, or in one of the custom paths
+# given in html_static_path.
+html_style = 'default.css'
+
+# The name for this set of Sphinx documents. If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar. Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+html_logo = 'figures/thg_logo_92x50.png'
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['.static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_use_modindex = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, the reST sources are included in the HTML build as _sources/<name>.
+#html_copy_source = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it. The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = ''
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'TortoiseHg'
+
+
+# Options for LaTeX output
+# ------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, document class [howto/manual]).
+latex_documents = [
+ ('index', 'TortoiseHg.tex', ur'TortoiseHg Documentation',
+ ur'Steve Borho and others', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+latex_logo = 'figures/thg_logo_pdf.png'
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = ['faq']
+
+# If false, no module index is generated.
+#latex_use_modindex = True
|
|
|
|
@@ -1,4 +1,4 @@ - **************************
+**************************
Frequently Asked Questions
**************************
|
@@ -1,7 +1,7 @@ - .. TortoiseHg documentation master file, created by
+.. TortoiseHg documentation master file, created by
sphinx-quickstart on Tue Jul 21 13:14:26 2009.
- You can adapt this file completely to your liking, but it should at least contain the root
- `toctree` directive.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
Vítejte v dokumentaci pro TortoiseHg!
======================================
@@ -9,19 +9,19 @@Obsah:
.. toctree::
- :maxdepth: 3
- :numbered:
-
- preface
- intro
- quick
- daily
- settings
- recovery
- patches
- extensions
- faq
- debugging
+ :maxdepth: 3
+ :numbered:
+
+ preface
+ intro
+ quick
+ daily
+ settings
+ recovery
+ patches
+ extensions
+ faq
+ debugging
Indices and tables
==================
|
@@ -1,4 +1,4 @@ - Vytvoření nového repozitáře
+Vytvoření nového repozitáře
===========================
.. module:: init.dialog
|
|
|
|
|
|
@@ -768,8 +768,11 @@
(frame, treeview, origpath, graphview) = objs
q = Queue.Queue()
- args = [q, 'annotate', '--follow', '--number',
- '--rev', str(rev), 'path:'+path]
+ # Use short -f here because it's meaning has changed, it used
+ # to be --follow but now it means --file. We want either.
+ # Replace -f with --file when support for hg-1.4 is dropped
+ args = [q, 'annotate', '-f', '--number', '--rev', str(rev),
+ 'path:'+path]
thread = thread2.Thread(target=threadfunc, args=args)
thread.start()
frame._mythread = thread
|
@@ -127,12 +127,15 @@ self.stdoutq.put(o)
else:
break
- self.oldstdout = os.dup(sys.__stdout__.fileno())
self.stdoutq = Queue.Queue()
- self.readfd, writefd = os.pipe()
- os.dup2(writefd, sys.__stdout__.fileno())
- thread = threading.Thread(target=pollstdout, args=[])
- thread.start()
+ if os.name == 'nt':
+ # Only capture stdout on Windows. This causes hard crashes
+ # on some other platforms. See issue #783
+ self.readfd, writefd = os.pipe()
+ self.oldstdout = os.dup(sys.__stdout__.fileno())
+ os.dup2(writefd, sys.__stdout__.fileno())
+ thread = threading.Thread(target=pollstdout, args=[])
+ thread.start()
self.hgthread = hgthread.HgThread(self.cmdline[1:])
self.hgthread.start()
@@ -192,8 +195,9 @@ self._button_stop.set_sensitive(False)
self._button_ok.set_sensitive(True)
self._button_ok.grab_focus()
- os.dup2(self.oldstdout, sys.__stdout__.fileno())
- os.close(self.oldstdout)
+ if os.name == 'nt':
+ os.dup2(self.oldstdout, sys.__stdout__.fileno())
+ os.close(self.oldstdout)
return False # Stop polling this function
else:
return True
|
|
|
@@ -10,7 +10,7 @@ import gtk
import traceback
-from mercurial import hg, ui, util
+from mercurial import hg, ui, util, error
from tortoisehg.util.i18n import _
from tortoisehg.util import hglib, settings, i18n
@@ -36,8 +36,8 @@ self.repo = repo
# add buttons
- self.add_button(_('Add'), RESPONSE_ADD)
- self.add_button(_('Remove'), RESPONSE_REMOVE)
+ self.addbtn = self.add_button(_('Add'), RESPONSE_ADD)
+ self.removebtn = self.add_button(_('Remove'), RESPONSE_REMOVE)
self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)
# persistent settings
@@ -51,15 +51,18 @@ self.tagcombo = gtk.combo_box_entry_new_text()
self.tagentry = self.tagcombo.get_child()
self.tagentry.set_text(hglib.toutf(tag))
+ self.tagcombo.connect('changed', self.combo_changed)
self.tagentry.connect('activate',
lambda *a: self.response(RESPONSE_ADD))
table.add_row(_('Tag:'), self.tagcombo, padding=False)
## revision input
- self._rev_input = gtk.Entry()
- self._rev_input.set_width_chars(12)
- self._rev_input.set_text(rev)
- table.add_row(_('Revision:'), self._rev_input)
+ self.reventry = gtk.Entry()
+ self.reventry.set_width_chars(12)
+ self.reventry.set_text(rev)
+ self.reventry.connect('notify::text',
+ lambda *a: self.update_sensitives())
+ table.add_row(_('Revision:'), self.reventry)
# advanced options expander
self.expander = gtk.Expander(_('Advanced options'))
@@ -70,80 +73,126 @@ self.expander.add(table)
## tagging options
- self._local_tag = gtk.CheckButton(_('Tag is local'))
- self._local_tag.connect('toggled', self.local_tag_toggled)
- self._replace_tag = gtk.CheckButton(_('Replace existing tag'))
- self._eng_msg = gtk.CheckButton(_('Use English commit message'))
- table.add_row(self._local_tag)
- table.add_row(self._replace_tag)
- table.add_row(self._eng_msg)
+ self.localchk = gtk.CheckButton(_('Tag is local'))
+ self.localchk.connect('toggled', self.local_tag_toggled)
+ self.replacechk = gtk.CheckButton(_('Replace existing tag'))
+ self.replacechk.connect('toggled',
+ lambda *a: self.update_sensitives())
+ self.engchk = gtk.CheckButton(_('Use English commit message'))
+ table.add_row(self.localchk)
+ table.add_row(self.replacechk)
+ table.add_row(self.engchk)
## custom commit message
- self._use_msg = gtk.CheckButton(_('Use custom commit message:'))
- self._use_msg.connect('toggled', self.msg_toggled)
- self._commit_message = gtk.Entry()
- self._commit_message.set_sensitive(False)
- table.add_row(self._use_msg)
- table.add_row(self._commit_message, padding=False)
+ self.customchk = gtk.CheckButton(_('Use custom commit message:'))
+ self.customchk.connect('toggled', self.msg_toggled)
+ self.msgentry = gtk.Entry()
+ self.msgentry.set_sensitive(False)
+ table.add_row(self.customchk)
+ table.add_row(self.msgentry, padding=False)
# prepare to show
self.load_settings()
- self._refresh(clear=False)
+ self.update_tagcombo(clear=False)
+ self.update_sensitives(True)
self.tagentry.grab_focus()
- def _refresh(self, clear=True):
+ def update_tagcombo(self, clear=True):
""" update display on dialog with recent repo data """
self.repo.invalidate()
self.tagcombo.get_model().clear()
# add tags to drop-down list
- tags = [x[0] for x in self.repo.tagslist()]
+ tags = list(self.repo.tags())
tags.sort()
- for tagname in tags:
- if tagname == 'tip':
+ tags.reverse()
+ for tag in tags:
+ if tag == 'tip':
continue
- self.tagcombo.append_text(hglib.toutf(tagname))
+ self.tagcombo.append_text(hglib.toutf(tag))
# clear tag input
if clear:
self.tagentry.set_text('')
+ def update_revision(self):
+ """ update revision entry based on tag """
+ tagmap = self.repo.tags()
+ tag = self.tagentry.get_text()
+ if not tag or hglib.fromutf(tag) not in tagmap:
+ return
+
+ node = tagmap[hglib.fromutf(tag)]
+ ctx = self.repo[node]
+ self.reventry.set_text(str(ctx.rev()))
+
+ def update_sensitives(self, affectlocal=False):
+ """ update bottom button sensitives based on rev and tag """
+ rev = self.reventry.get_text()
+ tag = self.tagentry.get_text()
+ if not rev or not tag:
+ self.addbtn.set_sensitive(False)
+ self.removebtn.set_sensitive(False)
+ return
+
+ # check if valid revision
+ try:
+ self.repo[hglib.fromutf(rev)]
+ except (error.LookupError, error.RepoLookupError, error.RepoError):
+ self.addbtn.set_sensitive(False)
+ self.removebtn.set_sensitive(False)
+ return
+ # check tag existence
+ force = self.replacechk.get_active()
+ is_exist = hglib.fromutf(tag) in self.repo.tags()
+ self.addbtn.set_sensitive(not is_exist or force)
+ self.removebtn.set_sensitive(is_exist)
+
+ # check if local
+ is_local = self.repo.tagtype(hglib.fromutf(tag))
+ if affectlocal and is_local is not None:
+ self.localchk.set_active(is_local == 'local')
+
def load_settings(self):
expanded = self.settings.get_value('expanded', False, True)
self.expander.set_property('expanded', expanded)
checked = self.settings.get_value('english', False, True)
- self._eng_msg.set_active(checked)
+ self.engchk.set_active(checked)
def store_settings(self):
expanded = self.expander.get_property('expanded')
self.settings.set_value('expanded', expanded)
- checked = self._eng_msg.get_active()
+ checked = self.engchk.get_active()
self.settings.set_value('english', checked)
self.settings.write()
def local_tag_toggled(self, checkbutton):
local_tag_st = checkbutton.get_active()
- self._eng_msg.set_sensitive(not local_tag_st)
- self._use_msg.set_sensitive(not local_tag_st)
- use_msg_st = self._use_msg.get_active()
- self._commit_message.set_sensitive(not local_tag_st and use_msg_st)
+ self.engchk.set_sensitive(not local_tag_st)
+ self.customchk.set_sensitive(not local_tag_st)
+ use_msg_st = self.customchk.get_active()
+ self.msgentry.set_sensitive(not local_tag_st and use_msg_st)
def msg_toggled(self, checkbutton):
state = checkbutton.get_active()
- self._commit_message.set_sensitive(state)
+ self.msgentry.set_sensitive(state)
if state:
- self._commit_message.grab_focus()
+ self.msgentry.grab_focus()
+
+ def combo_changed(self, combo):
+ self.update_revision()
+ self.update_sensitives(True)
def dialog_response(self, dialog, response_id):
# Add button
if response_id == RESPONSE_ADD:
- self._do_add_tag()
+ self.add_tag()
# Remove button
elif response_id == RESPONSE_REMOVE:
- self._do_remove_tag()
+ self.remove_tag()
# Close button or closed by the user
elif response_id in (gtk.RESPONSE_CLOSE, gtk.RESPONSE_DELETE_EVENT):
self.store_settings()
@@ -154,15 +203,15 @@
self.run() # don't close dialog
- def _do_add_tag(self):
+ def add_tag(self):
# gather input data
- is_local = self._local_tag.get_active()
+ is_local = self.localchk.get_active()
name = self.tagentry.get_text()
- rev = self._rev_input.get_text()
- force = self._replace_tag.get_active()
- eng_msg = self._eng_msg.get_active()
- use_msg = self._use_msg.get_active()
- message = self._commit_message.get_text()
+ rev = self.reventry.get_text()
+ force = self.replacechk.get_active()
+ eng_msg = self.engchk.get_active()
+ use_msg = self.customchk.get_active()
+ message = self.msgentry.get_text()
# verify input
if name == '':
@@ -173,16 +222,16 @@ if use_msg and not message:
dialog.error_dialog(self, _('Custom commit message is empty'),
_('Please enter commit message'))
- self._commit_message.grab_focus()
+ self.msgentry.grab_focus()
return False
# add tag to repo
try:
- self._add_hg_tag(name, rev, message, is_local, force=force,
+ self.add_hg_tag(name, rev, message, is_local, force=force,
english=eng_msg)
dialog.info_dialog(self, _('Tagging completed'),
_('Tag "%s" has been added') % name)
- self._refresh()
+ self.update_tagcombo()
except util.Abort, inst:
dialog.error_dialog(self, _('Error in tagging'), str(inst))
return False
@@ -191,12 +240,12 @@ traceback.format_exc())
return False
- def _do_remove_tag(self):
+ def remove_tag(self):
# gather input data
- is_local = self._local_tag.get_active()
+ is_local = self.localchk.get_active()
name = self.tagentry.get_text()
- eng_msg = self._eng_msg.get_active()
- use_msg = self._use_msg.get_active()
+ eng_msg = self.engchk.get_active()
+ use_msg = self.customchk.get_active()
# verify input
if name == '':
@@ -206,15 +255,15 @@ return False
if use_msg:
- message = self._commit_message.get_text()
+ message = self.msgentry.get_text()
else:
message = ''
try:
- self._remove_hg_tag(name, message, is_local, english=eng_msg)
+ self.remove_hg_tag(name, message, is_local, english=eng_msg)
dialog.info_dialog(self, _('Tagging completed'),
_('Tag "%s" has been removed') % name)
- self._refresh()
+ self.update_tagcombo()
except util.Abort, inst:
dialog.error_dialog(self, _('Error in tagging'), str(inst))
return False
@@ -223,8 +272,7 @@ traceback.format_exc())
return False
-
- def _add_hg_tag(self, name, revision, message, local, user=None,
+ def add_hg_tag(self, name, revision, message, local, user=None,
date=None, force=False, english=False):
if hglib.fromutf(name) in self.repo.tags() and not force:
raise util.Abort(_('a tag named "%s" already exists') % name)
@@ -242,7 +290,7 @@ lname = hglib.fromutf(name)
self.repo.tag(lname, r, hglib.fromutf(message), local, user, date)
- def _remove_hg_tag(self, name, message, local, user=None, date=None,
+ def remove_hg_tag(self, name, message, local, user=None, date=None,
english=False):
if hglib.fromutf(name) not in self.repo.tags():
raise util.Abort(_("Tag '%s' does not exist") % name)
|
Loading...