Skip to content
Snippets Groups Projects
  1. Jul 26, 2015
  2. Jul 25, 2015
    • Anton Shestakov's avatar
      hgweb: show ages in repos' Last modified column in monoblue and gitweb · 20ed56771b21
      Anton Shestakov authored
      Index page, which shows the list of available repositories, has a column where
      the last modification date for each repo is shown. paper, coal and spartan
      already show the dates in relative format (e.g. "2 weeks ago"), because these
      styles have the required process_dates() js function call in their footer
      templates, which are included on every page. But monoblue and gitweb styles
      have more things in the footer templates, such as repo name and its atom/rss
      links, so they don't include the footer on index page (as this page doesn't
      have a single repo context).
      
      Let's call process_dates() without including the footer.
      20ed56771b21
  3. Jul 24, 2015
  4. Jul 13, 2015
    • Anton Shestakov's avatar
      monoblue: show relative age of bookmarks · 777235417457
      Anton Shestakov authored
      In b24e5a708fad, age calculation was made dynamic (i.e. in javascript), but for
      some reason bookmarkentry template in monoblue/map got a wrong class. It
      resulted in /summary and /bookmarks pages always showing exact dates for
      bookmarks, no age calculation was performed. Let's fix this by using "age"
      class that is already used in branchentry and tagentry templates in the same
      map file.
      
      As usual, the exact date for such elements is still available in title
      attribute, so it shows in a tooltip on hover.
      777235417457
  5. Jul 22, 2015
    • Anton Shestakov's avatar
      highlight: produce correct markup when there's a blank line just before EOF · a74e9806d17d
      Anton Shestakov authored
      Due to how the colorized output from pygments was stripped of <pre> elements,
      when there was an empty line at the end of a file, highlight extension produced
      an incorrect markup (no closing tags from the fileline/annotateline template).
      It wasn't usually noticeable, because browsers were smart enough to see where
      the missing tags should've been, but in monoblue style it resulted in the last
      line having twice the normal height.
      
      Instead of awkwardly trying to strip outer <pre></pre> tags, let's make the
      formatter with nowrap=True, which should do what we need in pygments since at
      least 0.5 (2006-10-30).
      
      Example from monoblue style:
      
      Before:
      
          <div class="source">
      
      <div style="font-family:monospace" class="parity0">
      <pre><a class="linenr" href="#l1" id="l1">     1</a> </pre>
      </div>
      <div style="font-family:monospace" class="parity1">
      <pre><a class="linenr" href="#l2" id="l2">     2</a>
          </div>
      
      Now:
      
          <div class="source">
      
      <div style="font-family:monospace" class="parity0">
      <pre><a class="linenr" href="#l1" id="l1">     1</a> </pre>
      </div>
      <div style="font-family:monospace" class="parity1">
      <pre><a class="linenr" href="#l2" id="l2">     2</a> </pre>
      </div>
          </div>
      
      (Notice the missing </pre></div> now in place)
      a74e9806d17d
  6. Jul 21, 2015
    • Matt Harbison's avatar
      test-check-config: convert directory separators to '/' for MSYS · 8c1d7a0e737b
      Matt Harbison authored
      The output of the files command uses native separator.  MSYS then seems to drop
      the '\' on Windows when invoking python:
      
       --- c:/Users/Matt/Projects/hg/tests/test-check-config-hg.t
       +++ c:/Users/Matt/Projects/hg/tests/test-check-config-hg.t.err
       @@ -6,22 +6,10 @@
      
          $ hg files "set:(**.py or **.txt) - tests/**" |
          >   xargs python contrib/check-config.py  Traceback (most recent call last):
            File "contrib/check-config.py", line 93, in <module>
              sys.exit(main(sys.argv[1:]))
            File "contrib/check-config.py", line 24, in main
              for l in open(f):
          IOError: [Errno 2] No such file or directory: 'contriball-revsets.txt'
          [123]
      8c1d7a0e737b
    • Matt Harbison's avatar
      test-subrepo: fix globs for Windows · a48a7c2d1fea
      Matt Harbison authored
      It looks like these changes originated with 2538b87660be.  I'm not sure that it
      was intentional, but is seems harmless enough for an error message.
      a48a7c2d1fea
    • Matt Harbison's avatar
      test-clone: fix globs for Windows · 84074e4fc80f
      Matt Harbison authored
      84074e4fc80f
  7. Jul 20, 2015
  8. Jul 19, 2015
  9. Jul 18, 2015
  10. Jun 26, 2015
  11. Jul 18, 2015
  12. Jun 25, 2015
Loading