func ProfileRevision(profile string) (int, error) {
	if !IsValidName(profile) {
		return 0, errors.BadRequestf("not a juju profile name: %q", profile)
	}
	split := strings.Split(profile, "-")
	rev := split[len(split)-1:]
	return strconv.Atoi(rev[0])
}
// ProfileRevision returns an int which is the charm revision of the given
// profile name.
ProfileRevision returns an int which is the charm revision of the given
profile name.
// ProfileRevision returns an int which is the charm revision of the given // profile name .
func ProfileRevision(profile string) (int, error) {
	if !IsValidName(profile) {
		return 0, errors.BadRequestf("not a juju profile name: %q", profile)
	}
	split := strings.Split(profile, "-")
	rev := split[len(split)-1:]
	return strconv.Atoi(rev[0])
}
func ProfileRevision ( profile string ) ( int , error ) { if ! IsValidName ( profile ) { return 0 , errors . BadRequestf ( " " , profile ) } split := strings . Split ( profile , " " ) rev := split [ len ( split ) - 1 : ] return strconv . Atoi ( rev [ 0 ] ) }
ProfileRevision returns an int which is the charm revision of the given
profile name.
ProfileRevision returns an int which is the charm revision of the given profile name .