Feature #4455 » hg-isodatesec.patch
| lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl | ||
|---|---|---|
| 1 | 1 | changeset = 'This template must be used with --debug option\n' | 
| 2 | 2 | changeset_quiet = 'This template must be used with --debug option\n' | 
| 3 | 3 | changeset_verbose = 'This template must be used with --debug option\n' | 
| 4 | changeset_debug = '<logentry revision="{rev}" node="{node|short}">\n<author>{author|escape}</author>\n<date>{date|isodate}</date>\n<paths>\n{file_mods}{file_adds}{file_dels}{file_copies}</paths>\n<msg>{desc|escape}</msg>\n{tags}</logentry>\n\n' | |
| 4 | changeset_debug = '<logentry revision="{rev}" node="{node|short}">\n<author>{author|escape}</author>\n<date>{date|isodatesec}</date>\n<paths>\n{file_mods}{file_adds}{file_dels}{file_copies}</paths>\n<msg>{desc|escape}</msg>\n{tags}</logentry>\n\n' | |
| 5 | 5 | |
| 6 | 6 | file_mod = '<path action="M">{file_mod|escape}</path>\n' | 
| 7 | 7 | file_add = '<path action="A">{file_add|escape}</path>\n' | 
| test/unit/repository_mercurial_test.rb | ||
|---|---|---|
| 68 | 68 |       assert_nil @repository.scm.cat("sources/welcome_controller.rb") | 
| 69 | 69 | end | 
| 70 | 70 | |
| 71 | def test_isodatesec | |
| 72 | @repository.fetch_changesets | |
| 73 | @repository.reload | |
| 74 | rev0_committed_on = Time.gm(2007, 12, 14, 9, 22, 52) | |
| 75 |       assert_equal @repository.changesets.find_by_revision('0').committed_on, rev0_committed_on | |
| 76 | end | |
| 77 | ||
| 71 | 78 | else | 
| 72 | 79 | puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!" | 
| 73 | 80 | def test_fake; assert true end |