Skip to content
Snippets Groups Projects
  1. Sep 24, 2015
  2. Aug 25, 2015
    • Durham Goode's avatar
      paths: mark git repos as valid paths · f05962b0
      Durham Goode authored
      The latest version of Mercurial validates that a path contains the .hg
      directory. This breaks when pulling/pushing to git repos.
      
      This patch makes a gitrepo a valid path as well.
      f05962b0
    • Durham Goode's avatar
      paths: refactor gitdir detection to a function · f7d01752
      Durham Goode authored
      Refactors the logic that decides if a local directory is a git directory into a
      separate function. This will let us use it later on to integrate with
      Mercurial's new paths component.
      f7d01752
  3. Sep 24, 2015
  4. May 14, 2015
  5. May 15, 2015
  6. Apr 27, 2015
  7. Sep 24, 2015
    • Sean Farley's avatar
      refs: avoid using dulwich to load refs · a12e11d9
      Sean Farley authored
      We avoid using dulwich's refs method because it is incredibly slow. On a repo
      with a few hundred branches and a few thousand tags, dulwich took about 200ms
      to load everything.
      
      This patch only traveses the remote ref directory and cuts that time down to
      about 50ms.
      a12e11d9
  8. May 17, 2015
    • Sean Farley's avatar
      refs: use dulwich to read remote refs · 1a1d90e3
      Sean Farley authored
      It is unclear to me why we keep a file (which can become out of sync) of remote
      refs instead of just using dulwich. This caught a missing remote ref in the
      test suite.
      1a1d90e3
  9. Sep 30, 2015
  10. Aug 11, 2015
  11. Jul 17, 2015
    • Sean Farley's avatar
      init: fix default hg breakage by returning the right type · 7c80e9f8
      Sean Farley authored
      Originally, I copied the logic for the file scheme which calls
      _peerlookup(path) but in mercurial/hg.py they have:
      
          try:
              return thing(path)
          except TypeError:
              return thing
      
      So, our http(s) scheme broke default Mercurial because I tried returning
      thing(path) instead of just thing. A test has been added to catch this.
      7c80e9f8
  12. Jun 26, 2015
  13. Jul 01, 2015
  14. Jun 30, 2015
  15. Jun 14, 2015
    • Sean Farley's avatar
      import_git_commit: skip hgsubstate logic if file was deleted · 3246f2fa
      Sean Farley authored
      Previously, there was an edge case for Git repositories that started as
      Mercurial repositories and had used subrepos where a deleted .hgsubstate would
      be ignored and therefore reintroduced.
      
      This patch fixes that behavior by checking for the deleted .hgsubstate file
      first.
      
      A test has been added to verify behavior.
      3246f2fa
  16. Jun 11, 2015
    • Durham Goode's avatar
      gitimport: add save frequency config · 6aa31a3b
      Durham Goode authored
      If the importer encountered an error half way through a large import, all the
      commits are saved, but the mapfile is not written, so the process starts over
      from the beginning when run again.
      
      This adds the option for a config value that will save the map file every X
      commits. I thought about just hard coding this to 100 or something, but doing it
      this way seems a little less invasive.
      6aa31a3b
  17. Jun 24, 2015
    • Durham Goode's avatar
      pull: consider remotes during discovery · efcefc35
      Durham Goode authored
      The default dulwich graph walker only walks from refs/heads. During the
      discovery phase of fetching this causes it to redownload commits that are only
      referenced by refs/remotes. In a normal hggit case, this seems to mean it
      redownloads the entire git repo on every hg pull.
      
      Added a --debug to a test to check the object count (it decreased from 21 to 10
      as part of this patch).
      efcefc35
  18. Jun 19, 2015
  19. Jun 18, 2015
  20. Mar 17, 2015
  21. Jun 01, 2015
  22. May 31, 2015
  23. May 28, 2015
  24. May 14, 2015
    • Gregory Szorc's avatar
      git_handler: properly handle paths when files converge · d153586c
      Gregory Szorc authored
      filectx.renamed() returns a 2-tuple or None. memfilectx.__init__ expects
      the copied argument to be either None or a string. Before, we were
      passing a 2-tuple, leading to the memfilectx storing the wrong type.
      This eventually resulted in doing a key lookup against a manifest
      with a 2-tuple, which made manifest.c throw an error.
      d153586c
  25. May 13, 2015
  26. May 12, 2015
  27. May 08, 2015
  28. May 03, 2015
Loading