Skip to content
Snippets Groups Projects
  1. May 18, 2015
  2. May 16, 2015
  3. May 18, 2015
  4. May 15, 2015
  5. May 16, 2015
  6. Mar 30, 2015
  7. May 10, 2015
    • Pierre-Yves David's avatar
      getbundle: sort bundlecaps before exchanging then over the wire · 631766d1f57a
      Pierre-Yves David authored
      The 'bundlecaps' argument is built as a set, we need to stabilise the order
      before exchanging them. Otherwise, in the test, http logs are unstable when the
      'bundlecaps' contains something (eg: using bundle2).
      631766d1f57a
    • Pierre-Yves David's avatar
      hg-ssh: reject push earlier (on pretxnopen) · 2b9cda9040f7
      Pierre-Yves David authored
      We now have a lock triggered for any transaction. We use it to ensure no-read
      are made in read-only mode. We need more that just "no changegroup is added",
      since bundle2 allows for more than just changegroup to be exchanged.  We still
      protect pushkey as it may write data without opening a transaction.
      2b9cda9040f7
    • Pierre-Yves David's avatar
      test: test both bundle1 and bundle2 paths in 'test-push-hook-lock.t' · 00e4c5601c74
      Pierre-Yves David authored
      The locking scheme is a bit different in each cases. So we explicitly test each
      case.
      00e4c5601c74
    • Pierre-Yves David's avatar
      progress: get the extremely verbose output out of default debug · bd625cd4e5e7
      Pierre-Yves David authored
      When the progress extension is not enabled, each call to 'ui.progress' used to
      issue a debug message. This results is a very verbose output and often redundant
      in tests. Dropping it makes tests less volatile to factor they do not meant to
      test.
      
      We had to alter the sed trick in 'test-rename-merge2.t'. Sed is used to drop all
      output from a certain point and hidding the progress output remove its anchor.
      So we anchor on something else.
      bd625cd4e5e7
  8. May 15, 2015
  9. May 16, 2015
    • Matt Harbison's avatar
      match: resolve filesets in subrepos for commands given the '-S' argument · 755d23a49170
      Matt Harbison authored
      This will work for any command that creates its matcher via scmutil.match(), but
      only the files command is tested here (both workingctx and basectx based tests).
      The previous behavior was to completely ignore the files in the subrepo, even
      though -S was given.
      
      My first attempt was to teach context.walk() to optionally recurse, but once
      that was in place and the complete file list was built up, the predicate test
      would fail with 'path in nested repo' when a file in a subrepo was accessed
      through the parent context.
      
      There are two slightly surprising behaviors with this functionality.  First, any
      path provided inside the fileset isn't narrowed when it is passed to the
      subrepo.  I dont see any clean way to do that in the matcher.  Fortunately, the
      'subrepo()' fileset is the only one to take a path.
      
      The second surprise is that status predicates are resolved against the subrepo,
      not the parent like 'hg status -S' is.  I don't see any way to fix that either,
      given the path auditor error mentioned above.
      755d23a49170
    • Matt Harbison's avatar
      subrepo: introduce getfileset() · df63d4843581
      Matt Harbison authored
      This will be used in the next patch to help matchers resolve filesets in
      subrepos.  The default implementation returns an empty set (for git and svn).
      df63d4843581
  10. May 15, 2015
  11. Apr 13, 2015
  12. May 10, 2015
    • Pierre-Yves David's avatar
      obsolete: sort obsmarkers during exchange · e632a2429982
      Pierre-Yves David authored
      Because bundle2 allows a more precise exchange of obsmarkers during pull, it
      sends them in a different order (previously unstable because of sets.)  As
      a result, they are added to the repository in a different order. To stabilize
      the order and ensure tests are unchanged when moving from bundle1 to bundle2 we
      sort markers when exchanging them.
      
      In the long run, the obsstore will probably not use a linear storage.
      e632a2429982
  13. Apr 21, 2015
  14. May 15, 2015
    • Pierre-Yves David's avatar
      revset: fix iteration over ordered addset composed of non-ordered operands · 5548f558db3d
      Pierre-Yves David authored
      Before this change, doing ordered iteration over an 'addset' object composed of
      operands without fastasc or fastdesc method could result in duplicated entries.
      This was the result of applying '_iterordered' on an unordered set.
      
      We fix it by ensuring we iterate over the set in a sorted order. Using the fast
      iterator when it exists on any operand. We kill the '_iterator' method in the
      process because it did not make a lot of sense independently.
      
      Thanks goes to Yuya Nishihara for reporting the issue and analysing the cause.
      5548f558db3d
Loading