Skip to content
Snippets Groups Projects
  1. Jul 25, 2013
  2. Jul 24, 2013
  3. Jul 23, 2013
  4. Jul 21, 2013
  5. Jul 19, 2013
  6. Jul 12, 2013
    • Shun-ichi GOTO's avatar
      osutil: consider WindowsError's behaviour to support python 2.4 on Windows · 004f965630d9
      Shun-ichi GOTO authored
      This change treat the ESRCH error as ENOENT like WindowsError class
      does in python 2.5 or later. Without this change, some try..execpt
      code which expects errno is ENOENT may fail. Actually hg command does
      not work with python 2.4 on Windows.
      
      CreateFile() will fail with error code ESRCH
      when parent directory of specified path is not exist,
      or ENOENT when parent directory exist but file is not exist.
      Two errors are same in the mean of "file is not exist".
      So WindowsError class treats error code ESRCH as ENOENT
      in python 2.5 or later, but python 2.4 does not.
      
      Actual results with python 2.4:
      >>> errno.ENOENT
      2
      >>> errno.ESRCH
      3
      >>> WindowsError(3, 'msg').errno
      3
      >>> WindowsError(3, 'msg').args
      (3, 'msg')
      
      And with python 2.5 (or later):
      >>> errno.ENOENT
      2
      >>> errno.ESRCH
      3
      >>> WindowsError(3, 'msg').errno
      2
      >>> WindowsError(3, 'msg').args
      (3, 'msg')
      
      Note that there is no need to fix osutil.c because it never be used
      with python 2.4.
      004f965630d9
  7. Jul 17, 2013
    • Matthew Turk's avatar
      churn: split email aliases from the right · 68f7129af6a8
      Matthew Turk authored
      This splits churn email aliases from the right, to enable incorrectly-specified
      addresses that include equal signs to be mapped to correct addresses.  This
      will enable aliasing of bad addresses (typically typos) such as:
      
      sername=myusername
      
      that appear in the churn output through a churn alias such as:
      
      sername=myusername = myusername
      
      whereas previously splitting from the left would not enable this behavior.
      68f7129af6a8
  8. Jul 14, 2013
  9. Jul 12, 2013
    • Alexander Plavin's avatar
      hgweb: always start log with searched revision · a87d9102f7af
      Alexander Plavin authored
      This makes the specified revision be always on top of the list.
      Before the patch, for example with repo having revisions 0, 1, 2, 3 and user
      searching for '2', all revisions were shown and the specified one wasn't
      the first.
      a87d9102f7af
  10. Jul 01, 2013
  11. Jul 19, 2013
  12. Jul 13, 2013
  13. Jul 18, 2013
    • Mads Kiilerich's avatar
      convert: fix bad conversion of copies when hg.startrev is specified · 948df0f10ec1
      Mads Kiilerich authored
      The 'copynode' was looked up in self.keep as if it was a changeset node. It is
      however a filelog node, and self.keep would thus fail if it actually looked at
      its parameter ... which it only did if a startrev was specified.
      
      Instead we now don't check the copy node - we don't have to. It must have been
      copied from one of the parents, and we already check whether one of the parents
      have the copy source.
      
      We could perhaps use linkrev to see if the corresponding changeset was
      converted ... but that would sometimes be wrong.
      
      The existing test of this was wrong - now it is better, but it seems like it
      exposes a 'log' issue.
      948df0f10ec1
    • Mads Kiilerich's avatar
      test-convert-hg-startrev: fix test for copy removal on missing parent · 2345c9eb73c7
      Mads Kiilerich authored
      The test assumed that 'b' was missing just because the changeset that
      introduced 'b' wasn't converted ... but 'b' was also not removed before the
      start revision, and the parent was thus not missing at all.
      
      Instead we introduce a file 'f' in rev 0 and remove it in rev 1 so the copy
      source really doesn't exist in the repo that is converted from rev 1.
      2345c9eb73c7
  14. Jul 13, 2013
  15. Jul 18, 2013
  16. Jul 14, 2013
Loading