Skip to content
Snippets Groups Projects
  1. May 16, 2015
  2. May 18, 2015
  3. May 15, 2015
  4. May 16, 2015
  5. Mar 30, 2015
  6. 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
  7. May 15, 2015
  8. 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
  9. May 15, 2015
  10. Apr 13, 2015
  11. 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
  12. Apr 21, 2015
  13. 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
    • Drew Gottlieb's avatar
      match: add match.ispartial() · d1d69ca78883
      Drew Gottlieb authored
      match.ispartial() will return the opposite of match.always() in core, but this
      function will be extensible by extensions to produce another result even
      if match.always() will be untouched.
      
      This will be useful for narrowhg, where ispartial() will return False even if
      the match won't always match. This would happen in the case where the only
      time the match function is False is when the path is outside of the narrow
      spec.
      d1d69ca78883
  14. May 16, 2015
  15. May 14, 2015
    • Gilles Moris's avatar
      summary: add a phase line (draft, secret) to the output · 1ef96a3b8b89
      Gilles Moris authored
      The number of draft and secret changesets are currently not summarized.
      This is an important information because the number of drafts give some rough
      idea of the number of outgoing changesets in typical workflows, without needing
      to probe a remote repository. And a non-zero number of secrets means that
      those changeset will not be pushed.
      
      If the repository is "dirty" - some draft or secret changesets exists - then
      summary will display a line like:
      
      phases: X draft, Y secret (public)
      
      The phase in parenthesis corresponds to the highest phase of the parents of
      the working directory, i.e. the current phase.
      
      By default, the line is not printed if the repository is "clean" - all
      changesets are public - but if verbose is activated, it will display:
      
      phases: (public)
      
      On the other hand, nothing will be printed if quiet is in action.
      
      A few tests have been added in test-phases.t to cover the -v and -q cases.
      1ef96a3b8b89
  16. May 15, 2015
Loading