lib/autobuild/import/git.rb
# Computes the merge status for this package between two existing tags
# Raises if a tag is unknown
Computes the merge status for this package between two existing tags
Raises if a tag is unknown
Computes the merge status for this package between two existing tags Raises if a tag is unknown
def delta_between_tags(package, from_tag, to_tag)
            Dir.chdir(package.importdir) do
                pkg_tags = tags(package)
                if not pkg_tags.has_key?(from_tag)
                    raise ArgumentError, "tag '#{from_tag}' is unknown to #{package.name} -- known tags are: #{pkg_tags.keys}"
                end
                if not pkg_tags.has_key?(to_tag)
                    raise ArgumentError, "tag '#{to_tag}' is unknown to #{package.name} -- known tags are: #{pkg_tags.keys}"
                end
                from_commit = pkg_tags[from_tag]
                to_commit = pkg_tags[to_tag]
                merge_status(package, to_commit, from_commit)
           end
        end
def delta_between_tags ( package , from_tag , to_tag ) Dir . chdir ( package . importdir ) do pkg_tags = tags ( package ) if not pkg_tags . has_key? ( from_tag ) raise ArgumentError , "tag '#{from_tag}' is unknown to #{package.name} -- known tags are: #{pkg_tags.keys}" end if not pkg_tags . has_key? ( to_tag ) raise ArgumentError , "tag '#{to_tag}' is unknown to #{package.name} -- known tags are: #{pkg_tags.keys}" end from_commit = pkg_tags [ from_tag ] to_commit = pkg_tags [ to_tag ] merge_status ( package , to_commit , from_commit ) end end
Computes the merge status for this package between two existing tags
Raises if a tag is unknown
Computes the merge status for this package between two existing tags Raises if a tag is unknown
package
<not_specific>
from_tag
<not_specific>
to_tag
<not_specific>