hgbook

diff es/filenames.tex @ 433:7d3e036025fb

moar paragraphas. lolz
author jerojasro@localhost
date Sun Nov 30 19:51:23 2008 -0500 (2008-11-30)
parents 5da084395a69
children c847605eb2a9
line diff
     1.1 --- a/es/filenames.tex	Sun Nov 30 18:55:34 2008 -0500
     1.2 +++ b/es/filenames.tex	Sun Nov 30 19:51:23 2008 -0500
     1.3 @@ -173,21 +173,25 @@
     1.4  
     1.5  \subsection{Asociación con patrones de expresiones regulares \texttt{re}}
     1.6  
     1.7 -Mercurial accepts the same regular expression syntax as the Python
     1.8 -programming language (it uses Python's regexp engine internally).
     1.9 -This is based on the Perl language's regexp syntax, which is the most
    1.10 -popular dialect in use (it's also used in Java, for example).
    1.11 -
    1.12 -I won't discuss Mercurial's regexp dialect in any detail here, as
    1.13 -regexps are not often used.  Perl-style regexps are in any case
    1.14 -already exhaustively documented on a multitude of web sites, and in
    1.15 -many books.  Instead, I will focus here on a few things you should
    1.16 -know if you find yourself needing to use regexps with Mercurial.
    1.17 -
    1.18 -A regexp is matched against an entire file name, relative to the root
    1.19 -of the repository.  In other words, even if you're already in
    1.20 -subbdirectory \dirname{foo}, if you want to match files under this
    1.21 -directory, your pattern must start with ``\texttt{foo/}''.
    1.22 +Mercurial acepta la misma sintaxis para expresiones regulares del
    1.23 +lenguaje de programación Python (internamente se usa el motor de
    1.24 +expresiones regulares de Python). Esta sintaxis está basada en la
    1.25 +misma del lenguaje Perl, que es el dialecto más popular en uso
    1.26 +(por ejemplo, también se usa en Java).
    1.27 +
    1.28 +No discutiré el dialecto de expresiones regulares de Mercurial en
    1.29 +detalle aquí, ya que las mismas no son usadas frecuentemente. Las
    1.30 +expresiones regulares al estilo Perl se encuentran documentadas
    1.31 +exhaustivamente en una multitud de sitios web, y en muchos libros.
    1.32 +En vez de eso, me enfocaré en unas cuantas cosas que usted debería
    1.33 +conocer si tiene la necesidad de usar expresiones regulares en
    1.34 +Mercurial.
    1.35 +
    1.36 +Una expresión regular es comparada contra un nombre de fichero
    1.37 +completo, relativo a la raíz del repositorio. En otras palabras, aún
    1.38 +si usted se encuentra en un subdirectorio \dirname{foo}, si desea
    1.39 +asociar ficheros en este directorio, su patrón debe empezar con
    1.40 +``\texttt{foo/}''.
    1.41  
    1.42  One thing to note, if you're familiar with Perl-style regexps, is that
    1.43  Mercurial's are \emph{rooted}.  That is, a regexp starts matching