Skip to content
Snippets Groups Projects
  1. Jun 02, 2012
  2. Jun 01, 2012
  3. May 29, 2012
  4. May 30, 2012
  5. May 29, 2012
  6. May 27, 2012
  7. May 30, 2012
  8. May 22, 2012
    • Katsunori FUJIWARA's avatar
      match: make 'match.files()' return list object always · c17ce7cd5090
      Katsunori FUJIWARA authored
      'exact' match objects are sometimes created with a non-list 'pattern'
      argument:
      
        - using 'set' in queue.refresh():hgext/mq.py
              match = scmutil.matchfiles(repo, set(c[0] + c[1] + c[2] + inclsubs))
      
        - using 'dict' in revert():mercurial/cmdutil.py (names = {})
              m = scmutil.matchfiles(repo, names)
      
      'exact' match objects return specified 'pattern' to callers of
      'match.files()' as it is, so it is a non-list object.
      
      but almost all implementations expect 'match.files()' to return a list
      object, so this may causes problems: e.g. exception for "+" with
      another list object.
      
      this patch ensures that '_files' of 'exact' match objects is a list
      object.
      
      for non 'exact' match objects, parsing specified 'pattern' already
      ensures that it it a list one.
      c17ce7cd5090
  9. May 19, 2012
    • Patrick Mézard's avatar
      revset: fix infinite alias expansion detection · 30e46d7138de
      Patrick Mézard authored
      The alias expansion code it changed from:
      1- Get replacement tree
      2- Substitute arguments in the replacement tree
      3- Expand the replacement tree again
      
      into:
      
      1- Get the replacement tree
      2- Expand the replacement tree
      3- Expand the arguments
      4- Substitute the expanded arguments in the replacement tree
      
      and fixes cases like:
      
        [revsetalias]
        level1($1, $2) = $1 or $2
        level2($1, $2) = level1($2, $1)
      
        $ hg log -r "level2(level1(1, 2), 3)"
      
      where the original version incorrectly aborted on infinite expansion
      error, because it was confusing the expanded aliases with their
      arguments.
      30e46d7138de
    • Patrick Mézard's avatar
      revset: explicitely tag alias arguments for expansion · 2f3317d53d51
      Patrick Mézard authored
      The current revset alias expansion code works like:
      1- Get the replacement tree
      2- Substitute the variables in the replacement tree
      3- Expand the replacement tree
      
      It makes it easy to substitute alias arguments because the placeholders
      are always replaced before the updated replacement tree is expanded
      again. Unfortunately, to fix other alias expansion issues, we need to
      reorder the sequence and delay the argument substitution. To solve this,
      a new "virtual" construct called _aliasarg() is introduced and injected
      when parsing the aliases definitions. Only _aliasarg() will be
      substituted in the argument expansion phase instead of all regular
      matching string. We also check user inputs do not contain unexpected
      _aliasarg() instances to avoid argument injections.
      2f3317d53d51
  10. May 21, 2012
  11. May 16, 2012
  12. May 18, 2012
  13. May 17, 2012
  14. May 15, 2012
  15. Apr 10, 2012
  16. May 12, 2012
    • Sune Foldager's avatar
      bundle: make bundles more portable (isue3441) · 025b3b763ba9
      Sune Foldager authored
      This is achieved by acting as if the user had given -r<rev> for each head rev
      of outgoing changesets on the command line, as well as appropriate
      --base <rev>.
      
      The discovery information is computed as normal, and then adjusted as above.
      025b3b763ba9
  17. May 14, 2012
  18. May 15, 2012
  19. May 14, 2012
    • Mark Round's avatar
      posix: workaround lack of TIOCGWINSZ on Irix (issue3449) · 7002bb17cc5e
      Mark Round authored
      On an Irix 6.5.24 system, TIOCGWINSZ is not available. This means that
      any usage of the "hg" tool that looks up the terminal size (e.g. "hg
      help") will fail with an AttributeError.
      
      A simple work-around is just to wrap this block in mercurial/posix.py
      with a try/except so that it ends up using the default 80 characters
      width.
      7002bb17cc5e
    • Matt Mackall's avatar
      hgweb: fix filediff base calculation · 7bf48bc7de23
      Matt Mackall authored
      Previously, we were finding the most recent version of a file in a
      changeset and comparing it against its first file parent. This was
      wrong on three counts:
      
      - it would show a diff in revisions where there was no change to a file
      - it would show a diff when only the exec bit changed
      - it would potentially compare against a much older changeset, which
        could be very expensive if git-style rename detection was enabled
      
      This compares the file in the current context with that context's
      parent, which may result in an empty diff when looking at a file not
      touched by the current changeset.
      7bf48bc7de23
  20. May 13, 2012
    • kiilerix's avatar
      largefiles: use wlock for lfconvert (issue3444) · 1eede2ea2041
      kiilerix authored
      largefiles and lfconvert do dirty hacks with dirstate, so to avoid writing that
      as a side effect of the wlock release we clear dirstate first.
      
      To avoid confusing lock validation algorithms in error situations we unlock
      _before_ removing the target directory.
      1eede2ea2041
    • Matt Mackall's avatar
      merge with i18n · 40cdf8bc8d40
      Matt Mackall authored
      40cdf8bc8d40
  21. Jan 30, 2012
  22. May 12, 2012
  23. May 08, 2012
  24. May 12, 2012
  25. May 08, 2012
  26. May 09, 2012
Loading