1. 22 Jul, 2017 4 commits
  2. 21 Jul, 2017 3 commits
  3. 20 Jul, 2017 3 commits
  4. 18 Jul, 2017 1 commit
  5. 14 Jul, 2017 1 commit
  6. 10 Jul, 2017 3 commits
  7. 06 Jul, 2017 3 commits
  8. 05 Jul, 2017 10 commits
  9. 04 Jul, 2017 1 commit
  10. 03 Jul, 2017 1 commit
    • Thomas De Schampheleire's avatar
      setlocalversion: fix detection of hg revision for untagged versions · ec019bcf
      Thomas De Schampheleire authored
      
      
      By default, cut prints the entire line if the specified delimiter is not
      present at all:
      
          $ printf "foo bar" | cut -d' ' -f2
          bar
          $ printf "foobar" | cut -d' ' -f2
          foobar
      
      In setlocalversion, cut is presented with the output of 'hg id' which has
      the format:
      
          "<revision> <tags-if-any>"
      
      If the current revision is not tagged, the output of 'hg id' does not
      contain the delimiter (space), cut prints the entire string, and
      setlocalversion thinks the version is the tag.
      As setlocalversion does not print anything for tagged versions, there is no
      output overall, and no correct indication of the mercurial revision.
      
      Fix by passing the extra cut option '--only-delimited', which suppresses
      output if no delimiter is found.
      
      This problem likely went unnoticed for so long, because the tag 'tip' (i.e.
      most recent revision of the branch) is treated specially: in this case the
      mercurial revision _is_ printed, i.e. the situation is treated as
      'untagged'.
      The problem is only seen when you are _not_ at the most recent revision in
      your branch.
      
      Signed-off-by: default avatarThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
      Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
      ec019bcf
  11. 02 Jul, 2017 2 commits
  12. 01 Jul, 2017 8 commits