Skip to content
Snippets Groups Projects
  1. Sep 08, 2011
  2. Aug 26, 2011
    • Katsunori FUJIWARA's avatar
      i18n: calculate terminal columns by width information of each characters · 24efa83d81cb
      Katsunori FUJIWARA authored
      neither number of 'bytes' in any encoding nor 'characters' is
      appropriate to calculate terminal columns for specified string.
      
      this patch modifies MBTextWrapper for:
      
        - overriding '_wrap_chunks()' to make it use not built-in 'len()'
          but 'encoding.colwidth()' for columns of string
      
        - fixing '_cutdown()' to make it use 'encoding.colwidth()' instead
          of local, similar but incorrect implementation
      
      this patch also modifies 'encoding.py':
      
        - dividing 'colwith()' into 2 pieces: one for calculation columns of
          specified UNICODE string, and another for rest part of original
          one. the former is used from MBTextWrapper in 'util.py'.
      
        - preventing 'colwidth()' from evaluating HGENCODINGAMBIGUOUS
          configuration per each invocation: 'unicodedata.east_asian_width'
          checking is kept intact for reducing startup cost.
      24efa83d81cb
  3. Aug 06, 2011
  4. Jul 25, 2011
  5. Aug 25, 2011
    • Peter Arrenbrecht's avatar
      setdiscovery: fix hang when #heads>200 (issue2971) · c20688b7c061
      Peter Arrenbrecht authored
      When setting up the next sample, we always add all of the heads, regardless
      of the desired max sample size. But if the number of heads exceeds this
      size, then we don't add any more nodes from the still undecided set.
      (This is debatable per se, and I'll investigate it, but it's how we designed
      it at the moment.)
      
      The bug was that we always added the overall heads, not the heads of the
      remaining undecided set. Thus, if #heads>200 (desired sample size), we
      did not make progress any longer.
      c20688b7c061
  6. Aug 30, 2011
    • Martin Geisler's avatar
      ui: also swap sys.stdout with self.fout in _readline · 0fc95f5cea57
      Martin Geisler authored
      In 17ffb30d9174, _readline was changed to output a space using
      raw_input and this was done using sys.stdout directly, not self.fout.
      
      This change broke the command server for JavaHg since it (and other
      clients) would see a spurious ' ' on stdout and interpret this as an
      unknown channel.
      0fc95f5cea57
  7. Aug 26, 2011
  8. Aug 25, 2011
  9. Aug 19, 2011
  10. Aug 18, 2011
  11. Aug 17, 2011
  12. Aug 08, 2011
  13. Aug 10, 2011
    • Matt Mackall's avatar
      parsers: avoid pointer aliasing · 2ef2d3a5cd2d
      Matt Mackall authored
      Newer versions of GCC have aggressive pointer alias optimizations that
      might get fooled by our pointer manipulations. These issues shouldn't
      be encountered in practice because distutils compiles extensions with
      -fno-strict-alias but the code was not valid according to the standard.
      2ef2d3a5cd2d
    • Matt Mackall's avatar
      graphlog: attempt to fix index overrun (issue2912) · eb87fbc6d702
      Matt Mackall authored
      This bug may be caused by file subgraphs have more than two parents
      per node. I have no idea if this fix is correct as the graphlog code
      is mysterious, but it seems to be fine on the available test case.
      eb87fbc6d702
  14. Aug 04, 2011
  15. Aug 05, 2011
    • Patrick Mezard's avatar
      http: pass user to readauthforuri() (fix 4a43e23b8c55) · 0593e8f81c71
      Patrick Mezard authored
      urllib2 never handles URIs with credentials, we have to extract them and store
      them in the password manager before handing the stripped URI. Half of the
      changes deducing the username from the URI in 4a43e23b8c55 were incorrect.
      Instead, we retrieve the username from the password manager before passing to
      readauthforuri().
      
      test-hgweb-auth.py was passing because the test itself was flawed: it was
      passing URIs with credentials to find_password(), which never happens.
      0593e8f81c71
    • Patrick Mezard's avatar
      http: strip credentials from urllib2 manager URIs (issue2885) · 0f1311e829c9
      Patrick Mezard authored
      urllib2 password manager does not strip credentials from URIs registered with
      add_password() and compare them with stripped URIs in find_password(). Remove
      credentials from URIs returned by util.url.authinfo(). It sometimes works when
      no port was specified as the URI host is registered too.
      0f1311e829c9
  16. Aug 04, 2011
    • Idan Kamara's avatar
      dispatch: don't rewrap aliases that have the same definition · f4b7be3f8430
      Idan Kamara authored
      Previously aliases that overrode existing commands would wrap the old alias
      on every call to dispatch() (twice actually), which is an obvious re-entrancy
      issue for things like the command server or TortoiseHG.
      f4b7be3f8430
    • kiilerix's avatar
      url: really handle urls of the form file:///c:/foo/bar/ correctly · e89f62dcd723
      kiilerix authored
      28edd65000d9 made sure that paths that seemed to start with a windows drive
      letter would not get an extra leading slash.
      
      localpath should thus not try to handle this case by removing a leading slash,
      and this special handling is thus removed.
      
      (The localpath handling of this case was wrong anyway, because paths that look
      like they start with a windows drive letter can't have a leading slash.)
      
      A quick verification of this is to run 'hg id file:///c:/foo/bar/'.
      e89f62dcd723
  17. Aug 01, 2011
    • Matt Mackall's avatar
      Added signature for changeset 4a43e23b8c55 · 9991f8b19ff3
      Matt Mackall authored
      9991f8b19ff3
    • Matt Mackall's avatar
      Added tag 1.9.1 for changeset 4a43e23b8c55 · 3a0ed101e9e8
      Matt Mackall authored
      3a0ed101e9e8
    • Patrick Mezard's avatar
      hgweb: do not ignore [auth] if url has a username (issue2822) · 4a43e23b8c55
      Patrick Mezard authored
      The [auth] section was ignored when handling URLs like:
      
        http://user@example.com/foo
      
      Instead, we look in [auth] for an entry matching the URL and supplied user
      name. Entries without username can match URL with a username. Prefix length
      ties are resolved in favor of entries matching the username. With:
      
        foo.prefix = http://example.org
        foo.username = user
        foo.password = password
        bar.prefix = http://example.org/bar
      
      and the input URL:
      
        http://user@example.org/bar
      
      the 'bar' entry will be selected because of prefix length, therefore prompting
      for a password. This behaviour ensure that entries selection is consistent when
      looking for credentials or for certificates, and that certificates can be
      picked even if their entries do no define usernames while the URL does.
      Additionally, entries without a username matched against a username are
      returned as if they did have requested username set to avoid prompting again
      for a username if the password is not set.
      
      v2: reparse the URL in readauthforuri() to handle HTTP and HTTPS similarly.
      v3: allow unset usernames to match URL usernames to pick certificates. Resolve
      prefix length ties in favor of entries with usernames.
      1.9.1
      4a43e23b8c55
  18. Jul 30, 2011
  19. Aug 01, 2011
  20. Jul 31, 2011
  21. Jul 30, 2011
  22. Jul 28, 2011
  23. Jul 30, 2011
  24. Jul 27, 2011
  25. Jul 29, 2011
  26. Jul 31, 2011
  27. Jul 27, 2011
    • Andrew Pritchard's avatar
      setdiscovery: return anyincoming=False when remote's only head is nullid · 192e02680d09
      Andrew Pritchard authored
      This fixes (issue2907) a crash when using 'hg incoming --bundle' with an empty
      remote repo and a non-empty local repo.
      
      This also fixes an unreported bug that 'hg summary --remote' erroneously
      reports incoming changes when the remote repo is empty and the local is not.
      
      Also, add a test to make sure issue2907 stays fixed
      192e02680d09
Loading