Skip to content
Snippets Groups Projects
  1. Jan 31, 2011
  2. Jan 28, 2011
    • kiilerix's avatar
      url: 'ssh known host'-like checking of fingerprints of HTTPS certificates · 8dc488dfcdb4
      kiilerix authored
      Known fingerprints of HTTPS servers can now be configured in the
      hostfingerprints section. That makes it possible to verify the identify of web
      servers without configuring and trusting the CA chain.
      
      Limitations:
      * Portnumbers are ignored, just like with ordinary certificates.
      * Host name matching is case sensitive.
      8dc488dfcdb4
  3. Jan 27, 2011
  4. Jan 24, 2011
  5. Dec 24, 2010
  6. Dec 23, 2010
  7. Jan 19, 2011
  8. Jan 27, 2011
  9. Jan 26, 2011
  10. Jan 22, 2011
    • Patrick Mezard's avatar
      subrepo: compare svn subrepo state to last committed revision · d0e0d3d43e14
      Patrick Mezard authored
      A subversion project revisions are a subset of the repository revisions, you
      can ask subversion to update a working directory from one revision to another
      without changing anything. Unfortunately, Mercurial will think the
      subrepository has changed and will commit it again. To avoid useless commits,
      we compare the subrepository state to its actual "parent" revision. To ensure
      ascending compatibility with existing subrepositories which might reference
      fake revisions, we also keep comparing with the subrepo working directory
      revision.
      
      NOTE: not sure if this should go in stable or not.
      d0e0d3d43e14
  11. Jan 21, 2011
  12. Jan 08, 2011
  13. Jan 04, 2011
  14. Jan 05, 2011
  15. Jan 02, 2011
  16. Jan 05, 2011
  17. Jan 02, 2011
  18. Dec 25, 2010
  19. Dec 31, 2010
  20. Jan 02, 2011
  21. Dec 28, 2010
  22. Dec 21, 2010
  23. Dec 20, 2010
  24. Dec 30, 2010
  25. Dec 29, 2010
  26. Dec 27, 2010
    • Adrian Buehlmann's avatar
      windows.rename: eliminate temp name race (issue2571) · 650314ed845d
      Adrian Buehlmann authored
      On Windows, os.rename reliably raises OSError with errno.EEXIST if the
      destination already exists (even on shares served by Samba).
      
      Windows does *not* silently overwrite the destination of a rename.
      
      So there is no need to first call os.path.exists on the chosen temp path.
      
      Trusting os.path.exists is actually harmful, since using it enables the
      following racy sequence of actions:
      
       1) os.path.exists(temp) returns False
       2) some evil other process creates a file with name temp
       3) os.rename(dst, temp) now fails because temp has been taken
      
      Not using os.path.exists and directly trying os.rename(dst, temp)
      eliminates this race.
      650314ed845d
  27. Dec 13, 2010
    • Adrian Buehlmann's avatar
      checknlink: use two testfiles (issue2543) · 5b83ab614dab
      Adrian Buehlmann authored
      Preventing file loss repository corruption (e.g. vanished changelog.i) when
      Mercurial pushes to repositories on Windows shares served by Samba.
      
      This is a workaround for Samba bug 7863, which is present in current latest
      stable Samba 3.5.6 and various prior versions down to 3.0.26a (the oldest one
      I tested).
      
      Of course this should be fixed in Samba, but there probably aren't that many
      other applications who use hardlinks that extensively and keep files open like
      Mercurial, so the pressure to fix this on Samba is probably not that high. And
      even if the Samba project should be able to fix their bug within a month or
      two, it will take quite some time until users upgrade their Samba installs.
      5b83ab614dab
  28. Dec 20, 2010
  29. Dec 23, 2010
  30. Dec 27, 2010
  31. Dec 22, 2010
  32. Dec 20, 2010
  33. Dec 17, 2010
    • Adrian Buehlmann's avatar
      fncachestore: copy dh directory before the manifest · 4c1fbed00224
      Adrian Buehlmann authored
      Before this patch, the copy order on clone was:
      
        requires
        00changelog.i
        store\data
        store\00manifest.d
        store\00manifest.i
        store\00changelog.d
        store\00changelog.i
        store\dh
        store\fncache
      
      Which provides a theoretical non-zero probability of a race during clone where
      a very early reader might see a repository with missing revlog files if it sees
      00changelog.i before all files inside dh have been copied.
      
      The dh directory is similar to the data directory -- just for files with long
      names (which are hashed). The manifest refers to files in data *and* dh, so dh
      should be copied before the manifest.
      
      This patch improves the copy order to:
      
        requires
        00changelog.i
        store\data
        store\dh
        store\fncache
        store\00manifest.d
        store\00manifest.i
        store\00changelog.d
        store\00changelog.i
      
      I'm putting fncache to before the manifest while I'm at it, since fncache
      provides a mechanism to enumerate all repository files without visiting the
      manifest revisions. fncache depends only on data and dh.
      
      Note that data must be copied first, since copying data triggers the creation
      of the repository write lock in the destination repo (see hg.clone).
      4c1fbed00224
  34. Dec 20, 2010
Loading