Skip to content
Snippets Groups Projects
  1. Feb 06, 2015
    • Anton Shestakov's avatar
      hgweb: replace implicit <tbody> with explicit <thead> where appropriate · fdf7794b
      Anton Shestakov authored
      Some templates in paper style use <tbody> elements inside <table> to assign a
      class to "body" part of that table (in this case, to make rows striped). The
      problem is that the <tbody> is preceded by <tr> element, which browsers
      understand as an implicit start of table body, so the following exlicit <tbody>
      will actually be "nested", which is not valid.
      
      Since that first <tr> contains table headers, wrapping it in <thead> is both
      semantically correct and follows the advertised XHTML 1.1 doctype.
      fdf7794b
  2. Jan 31, 2015
  3. Nov 20, 2014
    • Martin von Zweigbergk's avatar
      context: use unfiltered repo for '.' · a9b61dbd
      Martin von Zweigbergk authored
      There is no reason to read obsolescence markers when doing a plain 'hg
      status' without --rev. Use the unfiltered repo when initializing
      context._rev to speed things up. This speeds up 'hg status' from
      1.342s to 0.080s on my repo with ~110k markers.
      a9b61dbd
  4. Feb 05, 2015
  5. Jan 21, 2015
    • Martin von Zweigbergk's avatar
      obsolete: extract helpers from _load() · e0e6dd80
      Martin von Zweigbergk authored
      In preparation for making the successors, precursors, and children
      dictionaries lazily populated, break up _load() into one function for
      adding markers to each dictionary.
      e0e6dd80
    • Eric Sumner's avatar
      test-gendoc: require gettext · 1fdb1d90
      Eric Sumner authored
      If the gettext utilities aren't installed, there is no way to make the
      translations.  This causes the gettext client to fall back to the untranslated
      message, which triggers "** NOTHING TRANSLATED **" errors and a test failure.
      1fdb1d90
  6. Feb 05, 2015
    • Anton Shestakov's avatar
      hgweb: use css margin instead of empty <p> before diffstat table · bf661a03
      Anton Shestakov authored
      The <p> elements were used to create an empty space between the diffstat link
      and the diffstat table, but they don't have any semantic meaning, so it is
      better to use css instead.
      
      Default margins for <p> elements can differ depending on the browser, but
      usually the margin is 1em (exceptions are IE 6 and 7 with 14pt, which is
      comparable). The css rule sets top margin to 1em.
      
      This change is a "better version" of 70cfa7e1611b, where <p> elements were
      simply properly closed.
      bf661a03
    • Anton Shestakov's avatar
      hgweb: use css margin instead of empty <p> before <div class="atom-logo"> · 9756f943
      Anton Shestakov authored
      The <p> elements were used to create an empty space between the last menu item
      (i.e. "help") and the atom feed icon, but they don't have any semantic meaning,
      so it is better to use css instead.
      
      The css rule uses top margin of 10px, which is equal to the top margin of the
      menu blocks ("help", "changeset, browse", etc). Previously, with <p> elements,
      the margin wasn't set explicitly and was browser-dependent.
      
      This change is a "better version" of 70cfa7e1611b, where <p> elements were
      simply properly closed.
      9756f943
  7. Jan 26, 2015
  8. Feb 04, 2015
  9. Jan 15, 2015
    • Eric Sumner's avatar
      bundle2.unbundlepart: implement seek() · f0b498cf
      Eric Sumner authored
      This implements a seek() method for unbundlepart.  This allows on-disk bundle2
      parts to behave enough like files for bundlerepo to handle them.  A future
      patch will add support for bundlerepo to read the bundle2 files that are
      written when the experimental.strip-bundle2-version config option is used.
      f0b498cf
  10. Jan 14, 2015
  11. Jan 24, 2015
    • Durham Goode's avatar
      manifest: make lru size configurable · ed5e8a95
      Durham Goode authored
      On machines with lots of ram, it's beneficial to increase the lru size of the
      manifest cache.  On a large repo, configuring the lru to be size 10 can shave a
      large rebase (~12 commits) down from 95s to 70s.
      ed5e8a95
  12. Feb 04, 2015
  13. Feb 03, 2015
    • Matt Harbison's avatar
      largefiles: set the extension as enabled locally after a clone requiring it · e1dbe0b2
      Matt Harbison authored
      When cloning a repo that requires largefiles, the user had to either enable the
      extension on the command line and then manually edit the local hgrc file after
      the clone, or just enable it globally for the user.  Since it is a feature of
      last resort, and materially affects even repos without any largefiles when it is
      enabled, we should make it easier to not have it enabled globally.
      
      This simply adds the enabling statement to the local hgrc if the requires file
      mandates its use (which only happens after the first largefile is committed).
      That means that a user who works with a mix of largefile and normal repos can
      always clone with '--config extensions.largefiles=', and the extension is
      permanently enabled or not as appropriate.
      
      The change in test-largefiles.t is simply because the order of loading rebase
      and largefiles changed.  The same change occurs if the order is flipped in the
      hgrc file at the top of the test.
      e1dbe0b2
  14. Feb 04, 2015
    • Gregory Szorc's avatar
      color: be more conservative about setting ANSI mode on Windows (BC) · a78888d9
      Gregory Szorc authored
      The current color mode detection on Windows assumes the presence of the
      TERM environment variable assumes ANSI is supported. However, this isn't
      always true. In MSYS (commonly found as part of MinGW), TERM is set to
      "cygwin" and the auto resolved color mode of "ansi" results in escape
      sequences getting printed literally to the terminal. The output is
      very difficult to read and results in a bad user experience. A
      workaround is to activate the pager and have it attend all commands (GNU
      less in MSYS can render ANSI terminal sequences properly).
      
      In Cygwin, TERM is set to "xterm." Furthermore, Cygwin supports
      displaying these terminal sequences properly (unlike MSYS).
      
      This patch changes the mode auto-detection logic on Windows to be more
      conservative about selecting the "ansi" mode. We now only select the
      "ansi" mode if TERM is set and it contains the string "xterm" or if
      we were unable to talk to win32 APIs to determine the settings. There is
      a chance this may take away "ansi" from a terminal that actually
      supports it. The recourse for this would be to patch the detection to
      act appropriately and to override color.mode until that patch has
      landed. However, the author believes this regression is tolerable, since
      it means MSYS users won't have gibberish printed by default.
      
      Since MSYS's common pager (less) supports display of ANSI sequences,
      there is room to patch the color extensions so it can select the ANSI
      color mode if a pager is activated.
      
      Mozilla (being an active user of MSYS) would really appreciate this
      being part of the stable branch. However, since I believe it is BC, I
      haven't explicitly requested application to stable since I figure that
      request will be denied.
      a78888d9
    • Matt Mackall's avatar
      merge with stable · f2a631c7
      Matt Mackall authored
      f2a631c7
  15. Jan 14, 2015
    • Eric Sumner's avatar
      bundle2.unpackermixin: control for underlying file descriptor · 3daef83a
      Eric Sumner authored
      This patch adds seek(), tell(), and close() implementations for unpackermixin
      which forward to the file descriptor's implementation if possible.  A future
      patch will use this to make bundle2.unbundlepart seekable, which will in turn
      make it usable as a file descriptor for bundlerepo.
      3daef83a
  16. Jan 16, 2015
  17. Jan 27, 2015
    • Martin von Zweigbergk's avatar
      _fm1readmarkers: generate list in C · 26fbf074
      Martin von Zweigbergk authored
      This moves perfloadmarkers from
      ! result: 63866
      ! wall 0.239217 comb 0.250000 user 0.240000 sys 0.010000 (best of 42)
      
      to
      
      ! result: 63866
      ! wall 0.218795 comb 0.210000 user 0.210000 sys 0.000000 (best of 46)
      26fbf074
  18. Jan 20, 2015
    • Augie Fackler's avatar
      obsolete: use parsers.fm1readmarker if it exists for a ~38% perf win · 26d6a6a7
      Augie Fackler authored
      This moves perfloadmarkers on my linux workstation (63494 markers from
      mpm, crew, and myself) performance from
      ! wall 0.357657 comb 0.360000 user 0.350000 sys 0.010000 (best of 28)
      to
      ! wall 0.222345 comb 0.220000 user 0.210000 sys 0.010000 (best of 41)
      which is a pretty good improvement.
      
      On my BSD machine, which is ancient and slow, before:
      ! wall 3.584964 comb 3.578125 user 3.539062 sys 0.039062 (best of 3)
      after:
      ! wall 2.267974 comb 2.265625 user 2.195312 sys 0.070312 (best of 5)
      
      
      I feel like we could do better by moving the whole generator function
      into C, but I didn't want to tackle that right away.
      26d6a6a7
  19. Jan 23, 2015
    • Augie Fackler's avatar
      parsers: add fm1readmarker · 72c9b5ae
      Augie Fackler authored
      This lets us do most of the interesting work of parsing obsolete
      markers in C, which should provide significant time savings.
      
      Thanks to Martin von Zweigbergk for some cleanups on this code.
      72c9b5ae
  20. Feb 03, 2015
    • Augie Fackler's avatar
      util: add getbefloat64 · fb93721c
      Augie Fackler authored
      As far as I can tell, this is wrong. double's format isn't strictly
      specified in the C standard, but the wikipedia article implies that
      platforms implementing optional Annex F "IEC 60559 floating-point
      arithmetic" will work correctly.
      
      My local C experts believe doing *((double *) &t) is a strict aliasing
      violation, and that using a union is also one. Doing memcpy appears to
      be the least-undefined behavior possible.
      fb93721c
  21. Jan 20, 2015
Loading