Skip to content
Snippets Groups Projects
  1. Dec 02, 2010
  2. Dec 01, 2010
  3. Nov 19, 2010
  4. Nov 30, 2010
  5. Nov 26, 2010
  6. Nov 24, 2010
  7. Dec 01, 2010
  8. Nov 23, 2010
  9. Dec 01, 2010
  10. Nov 30, 2010
  11. Nov 29, 2010
  12. Nov 27, 2010
  13. Nov 26, 2010
  14. Nov 23, 2010
    • Adrian Buehlmann's avatar
      util.datestr: do not crash on revisions with negative timestamp (issue2513) · dd24f3e7
      Adrian Buehlmann authored
      Python's time.gmtime(lt) fails on Windows, producing a traceback with
      
        ValueError: (22, 'Invalid argument')
      
      if lt < -43200.
      
      We get a local time boundary value of -43200 if we take "the epoch"
      
         Thu Jan 01 00:00:00 1970 = time.gmtime(0)
      
      from timezone 'UTC+0' into timezone 'UTC-12'. All other timezones will have
      larger local time values for that point in time.
      
      Aborting with a traceback on 'hg log' for revisions with a timestamp value
      < -43200 is clearly not acceptable.
      
      Returning "invalid timestamp" or similar as string representation is not an
      option either, since that may crash other tools which parse the output of
      'hg log'.
      
      Instead, we teach util.datestr() to return the epoch in timezone UTC+0 on
      *all platforms*, represented by the string
      
        Thu Jan 01 00:00:00 1970 +0000
      
      if the timestamp's unix time value is negative.
      
      (based on a patch originally proposed by Benjamin Pollack)
      dd24f3e7
    • Adrian Buehlmann's avatar
      checknlink: return False if .hgtmp file preexists (issue2517) · 670f4e98
      Adrian Buehlmann authored
      If os_link fails on Windows, errno is always errno.EINVAL,
      so we can't really say if the testlink could not be created
      because (a) the FS doesn't support hardlinks or (b) there
      is a leaked .hgtmp file lying around from a previous crashed
      run.
      
      So let's err on the safe side, keep the code simple and assume
      we can't detect hardlinks in both cases.
      670f4e98
  15. Nov 16, 2010
    • Kevin Bullock's avatar
      mq: ignore subrepos (issue2499) · f08df4d3
      Kevin Bullock authored
      If MQ allows modifying .hgsub or .hgsubstate in a patch, it can easily
      lead to an inconsistent subrepo state. This patch prevents qrefresh from
      adding any modifications to .hgsub or .hgsubstate to a patch. The user
      is warned that these files are not included in the patch.
      
      The tests test both the slightly irrational and the pathological cases.
      f08df4d3
  16. Nov 22, 2010
  17. Nov 20, 2010
  18. Nov 18, 2010
  19. Nov 17, 2010
  20. Nov 16, 2010
  21. Nov 15, 2010
  22. Nov 13, 2010
  23. Nov 10, 2010
    • Nicolas Dumazet's avatar
      log: fix log -rREV FILE when REV isnt the last filerev (issue2492) · 7916a84c
      Nicolas Dumazet authored
      Regression from 99cafcae25d9. That previous commit is not supposed
      to affect log calls without --follow, so we step out of this
      codepath if follow is not True, and it's enough to fix the
      regression.
      
      When --follow is given, we fix the issue by taking into account
      changesets that have a rev > maxrev to build the filegraph: even if
      those files are not included in the final result, it's still needed
      to walk correctly the graph from the end of the filelog to minrev, to
      track accurately renames.
      7916a84c
Loading