##// END OF EJS Templates
Issue 882: add standard hook to reject text files with CRLF....
Issue 882: add standard hook to reject text files with CRLF. While the win32text extension does LF <-> CRLF conversion, and will issue a warning in case a file already in the repository uses CRLF, it provides no mechanism for verifying that incoming changes use LF. In a large development team with some Windows users, it is virtually guaranteed that someone will forget to set up the encode filter correctly and accidentally check in a file using CRLF, which can cause warnings for other Windows users when they next fetch changes. Since this is a general problem it is desirable to have a pre-commit (or -push) hook available to reject such accidents earlier rather than trying to fix them up after the fact.

File last commit:

r5550:db6633f1 default
r5675:a5fe27b8 default
Show More
map-cmdline.default
24 lines | 1.2 KiB | text/plain | TextLexer
Alexis S. L. Carvalho
command line templates: add formatnode filter...
r4352 changeset = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\nsummary: {desc|firstline}\n\n'
Vadim Gelfer
add changeset_quiet to templates.
r1919 changeset_quiet = '{rev}:{node|short}\n'
Patrick Mezard
cmdutil: always expose "files_add", "files_del" and "manifest" templater properties
r5545 changeset_verbose = 'changeset: {rev}:{node|short}\n{branches}{tags}{parents}user: {author}\ndate: {date|date}\n{files}{file_copies}description:\n{desc|strip}\n\n\n'
Patrick Mezard
cmdutil: make "files" list all files, add "file_mods" for modified files
r5550 changeset_debug = 'changeset: {rev}:{node}\n{branches}{tags}{parents}{manifest}user: {author}\ndate: {date|date}\n{file_mods}{file_adds}{file_dels}{file_copies}{extras}description:\n{desc|strip}\n\n\n'
Thomas Arendsen Hein
Adjust default cmdline style to really match verbose/debug log.
r3459 start_files = 'files: '
file = ' {file}'
end_files = '\n'
Patrick Mezard
cmdutil: make "files" list all files, add "file_mods" for modified files
r5550 start_file_mods = 'files: '
file_mod = ' {file_mod}'
end_file_mods = '\n'
Vadim Gelfer
make --style=compact look for map-cmdline.compact....
r1914 start_file_adds = 'files+: '
file_add = ' {file_add}'
end_file_adds = '\n'
start_file_dels = 'files-: '
file_del = ' {file_del}'
end_file_dels = '\n'
Brendan Cully
Show copies in hg log....
r3197 start_file_copies = 'copies: '
file_copy = ' {name} ({source})'
end_file_copies = '\n'
Alexis S. L. Carvalho
command line templates: add formatnode filter...
r4352 parent = 'parent: {rev}:{node|formatnode}\n'
Vadim Gelfer
make --style=compact look for map-cmdline.compact....
r1914 manifest = 'manifest: {rev}:{node}\n'
Thomas Arendsen Hein
Add new branch info to templater and use it in map-cmdline.default....
r3461 branch = 'branch: {branch}\n'
Vadim Gelfer
make --style=compact look for map-cmdline.compact....
r1914 tag = 'tag: {tag}\n'
Thomas Arendsen Hein
Added extra changeset info to templater and map-cmdline.default.
r3462 extra = 'extra: {key}={value|stringescape}\n'