templates/raw/map
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 04 Oct 2007 23:21:37 -0300
changeset 5378 8a2915f57dfc
parent 4024 de081fbb27fe
permissions -rw-r--r--
convert: add a mode where mercurial_sink skips empty revisions. The getchanges function of some converter_source classes can return some false positives. I.e. they sometimes claim that a file "foo" was changed in some revision, even though its contents are still the same. convert_svn is particularly bad, but I think this can also happen with convert_cvs and, at least in theory, with mercurial_source. For regular conversions this is not really a problem - as long as getfile returns the right contents, we'll get a converted revision with the right contents. But when we use --filemap, this could lead to superfluous revisions being converted. Instead of fixing every converter_source, I decided to change mercurial_sink to work around this problem. When --filemap is used, we're interested only in revisions that touch some specific files. If a revision doesn't change any of these files, then we're not interested in it (at least for revisions with a single parent; merges are special). For mercurial_sink, we abuse this property and rollback a commit if the manifest text hasn't changed. This avoids duplicating the logic from localrepo.filecommit to detect unchanged files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3276
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3228
diff changeset
     1
header = header.tmpl
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
     2
footer = ''
3276
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3228
diff changeset
     3
changeset = changeset.tmpl
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
     4
difflineplus = '#line#'
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
     5
difflineminus = '#line#'
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
     6
difflineat = '#line#'
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
     7
diffline = '#line#'
2520
e30f425a4b2c make changeset outputted by the raw template to be closer to 'hg export'
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 2094
diff changeset
     8
changesetparent = '# Parent #node#'
e30f425a4b2c make changeset outputted by the raw template to be closer to 'hg export'
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 2094
diff changeset
     9
changesetchild = '# Child #node#'
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
    10
filenodelink = ''
2534
d5a3cc6520d5 Fix raw files in the web UI.
Eric Hopper <hopper@omnifarious.org>
parents: 2094
diff changeset
    11
filerevision = '#rawfileheader##raw#'
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
    12
fileline = '#line#'
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
    13
diffblock = '#lines#'
3276
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3228
diff changeset
    14
filediff = filediff.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3228
diff changeset
    15
fileannotate = fileannotate.tmpl
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1694
diff changeset
    16
annotateline = '#author#@#rev#: #line#'
3935
472d9670e6e9 hgweb: add raw manifest template
Brendan Cully <brendan@kublai.com>
parents: 3276
diff changeset
    17
manifest = manifest.tmpl
472d9670e6e9 hgweb: add raw manifest template
Brendan Cully <brendan@kublai.com>
parents: 3276
diff changeset
    18
manifestdirentry = 'drwxr-xr-x {basename}\n'
472d9670e6e9 hgweb: add raw manifest template
Brendan Cully <brendan@kublai.com>
parents: 3276
diff changeset
    19
manifestfileentry = '{permissions|permissions} {size} {basename}\n'
4024
de081fbb27fe hgweb: add raw template to hgwebdir
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3935
diff changeset
    20
index = index.tmpl
de081fbb27fe hgweb: add raw template to hgwebdir
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 3935
diff changeset
    21
indexentry = '#url#\n'