lib/between_meals/repo/hg.rb
# Return files changed between two revisions
Return files changed between two revisions
Return files changed between two revisions
def changes(start_ref, end_ref)
        valid_ref?(start_ref)
        valid_ref?(end_ref) if end_ref
        stdout = @cmd.status(start_ref, end_ref).stdout
        begin
          parse_status(stdout).compact
        rescue StandardError => e
          @logger.error(
            'Something went wrong. Please report this output.',
          )
          @logger.error(e)
          stdout.lines.each do |line|
            @logger.error(line.strip)
          end
          exit(1)
        end
      end
def changes ( start_ref , end_ref ) valid_ref? ( start_ref ) valid_ref? ( end_ref ) if end_ref stdout = @cmd . status ( start_ref , end_ref ) . stdout begin parse_status ( stdout ) . compact rescue StandardError => e @logger . error ( 'Something went wrong. Please report this output.' , ) @logger . error ( e ) stdout . lines . each do | line | @logger . error ( line . strip ) end exit ( 1 ) end end
Return files changed between two revisions
Return files changed between two revisions
# We've seen some weird non-reproducible failures here
start_ref
<not_specific>
end_ref
<not_specific>