Skip to content
Snippets Groups Projects
  1. May 18, 2015
  2. May 15, 2015
  3. May 16, 2015
  4. Mar 30, 2015
  5. May 10, 2015
  6. May 15, 2015
  7. May 16, 2015
    • Matt Harbison's avatar
      match: resolve filesets in subrepos for commands given the '-S' argument · 755d23a4
      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.
      755d23a4
    • Matt Harbison's avatar
      subrepo: introduce getfileset() · df63d484
      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).
      df63d484
  8. May 15, 2015
  9. Apr 13, 2015
  10. May 10, 2015
    • Pierre-Yves David's avatar
      obsolete: sort obsmarkers during exchange · e632a242
      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.
      e632a242
  11. Apr 21, 2015
  12. May 15, 2015
    • Pierre-Yves David's avatar
      revset: fix iteration over ordered addset composed of non-ordered operands · 5548f558
      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.
      5548f558
    • Drew Gottlieb's avatar
      match: add match.ispartial() · d1d69ca7
      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.
      d1d69ca7
  13. May 16, 2015
  14. May 14, 2015
    • Gilles Moris's avatar
      summary: add a phase line (draft, secret) to the output · 1ef96a3b
      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.
      1ef96a3b
  15. May 15, 2015
  16. May 14, 2015
    • Anton Shestakov's avatar
      hgweb: split some long lines in paper, gitweb and monoblue styles · 09ec4220
      Anton Shestakov authored
      This will ease future patches for the templates.
      
      As a result of this patch, paper style has one visual change in
      log/shortlog/file log view: the spacing between commit message and the first
      tag (or branch name, or bookmark) is now roughly who spaces wide instead of one
      space wide. This spacing is consistent with the one between branch
      names/tags/bookmarks themselves, so it looks better.
      
      In gitweb style, the change from non-breakable space to regular space is
      consistent with other elements.
      
      In monoblue the change is not noticeable.
      09ec4220
Loading