Skip to content
Snippets Groups Projects
  1. Feb 09, 2019
  2. Jan 26, 2019
  3. Sep 19, 2018
  4. Sep 04, 2018
  5. May 01, 2018
  6. Apr 04, 2018
  7. Jan 18, 2018
    • Boris Feld's avatar
      revbranchcache: advertise and use 'rbc' exchange capability · 2090044a
      Boris Feld authored
      The feature is now advertised and use.
      
      Updating the branchmap cache can be very expensive (up to minutes on large
      repository) and fetching revision branch data is about 80% of that. Exchanging
      the rev branch cache over the wire really help to recover from branch map
      invalidation.
      
      (There is a good chance other in flight chance would conflict on
      test-http-bad-server.t and other. So here is a small note to help update that
      test again: capabilities=19bytes, part-107bytes)
      2090044a
  8. Oct 25, 2017
  9. Oct 12, 2017
    • Denis Laxalde's avatar
      transaction-summary: show the range of new revisions upon pull/unbundle (BC) · eb586ed5
      Denis Laxalde authored
      Upon pull or unbundle, we display a message with the range of new revisions
      fetched. This revision range could readily be used after a pull to look out
      what's new with 'hg log'. The algorithm takes care of filtering "obsolete"
      revisions that might be present in transaction's "changes" but should not be
      displayed to the end user.
      eb586ed5
  10. Jul 29, 2017
    • Gregory Szorc's avatar
      statichttprepo: implement wlock() (issue5613) · 8b00c723
      Gregory Szorc authored
      statichttprepo inherits from localrepository. In doing so, it
      obtains default implementations of various methods, like wlock().
      
      Before this change, tags cache writing would call repo.wlock().
      This failed on statichttprepo due to localrepository's wlock()
      looking for an instance attribute that doesn't exist on statichttprepo
      (statichttprepo doesn't call localrepository.__init__).
      
      We /could/ define missing attributes until the base wlock() works.
      However, a statichttprepo is remote and read-only and can't be
      locked. The class already has a lock() that short circuits. So
      it makes sense to implement a short-circuited wlock() as well. That
      is what this patch does.
      
      LockError is expected to be raised when locking fails. The constructor
      takes a number of arguments that are local repository centric. Rather
      than rework LockError to not require them (which would not be
      appropriate for stable), this commit populates dummy values. I don't
      believe they'll ever be seen by the user, as lock failures on
      static http repos should be limited to well-defined (and tested)
      scenarios. We can and should revisit the LockError type to improve
      this.
      8b00c723
    • Gregory Szorc's avatar
      test: add tests for branches and tags with static http repo (issue5613) · 075823a6
      Gregory Szorc authored
      Mercurial currently fails to clone by revision on static http
      repos with tags. The added tests demonstrate this.
      075823a6
  11. Jun 20, 2017
  12. Mar 31, 2017
  13. Mar 30, 2017
    • Pierre-Yves David's avatar
      run-tests: auto-replace 'TXNID' output · 728d3735
      Pierre-Yves David authored
      Hooks related to the transaction are aware of the transaction id. By definition
      this txn-id is unique and different for each transaction. As a result it can
      never be predicted in test and always needs matching. As a result, touching any
      like with this data is annoying. We solve the problem once and for all by
      installing an automatic replacement. In test, this will now show as:
      
        TXNID=TXN:$ID$
      728d3735
  14. Oct 28, 2016
    • Katsunori FUJIWARA's avatar
      tests: invoke printenv.py via sh -c for test portability · 34a5f6c6
      Katsunori FUJIWARA authored
      On Windows platform, invoking printenv.py directly via hook is
      problematic, because:
      
        - unless binding between *.py suffix and python runtime, application
          selector dialog is displayed, and running test is blocked at each
          printenv.py invocations
      
        - it isn't safe to assume binding between *.py suffix and python
          runtime, because application binding is easily broken
      
          For example, installing IDE (VisualStudio with Python Tools, or
          so) often requires binding between source files and IDE itself.
      
      This patch invokes printenv.py via sh -c for test portability. This is
      a kind of follow up for d19787db6fe0, which eliminated explicit
      "python" for printenv.py. There are already other 'sh -c "printenv.py"'
      in *.t files, and this fix should be reasonable.
      
      This changes were confirmed in cases below:
      
        - without any application binding for *.py suffix
        - with binding between *.py suffix and VisualStudio
      
      This patch also replaces "echo + redirection" style with "heredoc"
      style, because:
      
        - hook command line is parsed by cmd.exe as shell at first, and
        - single quotation can't quote arguments on cmd.exe, therefore,
        - "printenv.py foobar" should be quoted by double quotation, but
        - nested quoting (or tricky escaping) isn't readable
      34a5f6c6
  15. Jul 12, 2016
    • Augie Fackler's avatar
      tests: relax "Connection refused" match · 28052824
      Augie Fackler authored
      We already had the match relaxed on Windows, but on Google Compute
      Engine VMs I'm seeing "Network is unreachable" instead of "Connection
      refused". At this point, just give up and make sure we get an error back.
      28052824
  16. Jan 06, 2016
    • Mateusz Kwapich's avatar
      hooks: add HG_NODE_LAST to txnclose and changegroup hook environments · d6d3cf5f
      Mateusz Kwapich authored
      Sometimes a txnclose or changegroup hook wants to iterate through all
      the changesets in transaction: in that situation usually the revset
      `$HG_NODE:` is used to select the revisions. Unfortunately this revset
      sometimes may contain too many changesets because we don't have the
      write lock while the hook runs newer changes may be added to
      repository in the meantime.
      
      That's why there is a need for extra variable carrying the information about
      the last change in the transaction.
      d6d3cf5f
  17. Jun 16, 2015
    • Matt Harbison's avatar
      verify: check the subrepository references in .hgsubstate · f1d46075
      Matt Harbison authored
      While hopefully atypical, there are reasons that a subrepository revision can be
      lost that aren't covered by corruption of the .hgsubstate revlog.  Such things
      can happen when a subrepo is amended, stripped or simply isn't pulled from
      upstream because the parent repo revision wasn't updated yet.  There's no way to
      know if it is an error, but this will find potential problems sooner than when
      some random revision is updated.
      
      Until recently, convert made no attempt at rewriting the .hgsubstate file.  The
      impetuous for this is to verify the conversion of some repositories, and this is
      orders of magnitude faster than a bash script from 0..tip that does an
      'hg update -C $rev'.  But it is equally useful to determine if everything has
      been pulled down before taking a thumb drive on the go.
      
      It feels somewhat wrong to leave this out of verifymod (mostly because the file
      is already read in there, and the final summary is printed before the subrepos
      are checked).  But verifymod looks very low level, so importing subrepo stuff
      there seems more wrong.
      f1d46075
  18. Jun 08, 2015
  19. Apr 15, 2015
  20. Oct 16, 2014
    • Mike Hommey's avatar
      changegroup: use a copy of hookargs when invoking the changegroup hook · 7c13c940
      Mike Hommey authored
      addchangegroup creates a runhook function that is used to invoke the
      changegroup and incoming hooks, but at the time the function is called,
      the contents of hookargs associated with the transaction may have been
      modified externally. For instance, bundle2 code affects it with
      obsolescence markers and bookmarks info.
      
      It also creates problems when a single transaction is used with multiple
      changegroups added (as per an upcoming change), whereby the contents
      of hookargs are that of after adding a latter changegroup when invoking
      the hook for the first changegroup.
      7c13c940
    • Mike Hommey's avatar
      tests: pull common http server setup out of individual tests · 10116463
      Mike Hommey authored
      There are currently two different tests using roughly the same code to
      create temporary scripts acting as HTTP servers. As there is going to
      be at least one more in an upcoming change, factor those out in a
      standalone dumbhttp.py script.
      10116463
  21. Oct 12, 2014
  22. Aug 15, 2014
  23. Aug 06, 2014
  24. Sep 12, 2012
    • Patrick Mézard's avatar
      test-static-http.t: enable on Windows · 31ca918d
      Patrick Mézard authored
      We cannot read $! to get the background job process identifier, with
      MinGW it can return internal identifiers not matching the native Windows
      ones. Instead we introduce a helper script polling on the pid file. We
      assume the pid file data will be written in order.
      31ca918d
  25. Aug 17, 2012
  26. Jun 06, 2012
  27. Jul 13, 2012
  28. Jun 19, 2012
  29. Jun 21, 2012
  30. Jun 16, 2012
  31. Nov 07, 2011
  32. May 09, 2011
    • Martin Geisler's avatar
      subrepo: create subrepos using clone instead of pull · ccb7240a
      Martin Geisler authored
      Subrepositories used to be created empty and then filled with data
      using pull. This is wasteful when you do a clone from a local source
      since it means that no hardlinks are created for the subrepos.
      
      This patch make the hgsubrepo._get method check for an empty subrepo
      and in that case do a clone instead of a pull. This brings in the same
      data as before, but creates hardlinks when possible.
      ccb7240a
  33. Apr 19, 2011
Loading