mavencoord.py
def resolveConflict (coord1, coord2):
    """ Resolve given coordinate conflict by sticking with the highest
    version that resolves the conflict.

    Returns the coordinate object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    """
    cmpValue = vercmp.compare (coord1.id, coord2.id)
    newScope = MavenCoord.resolveScopeConflict (coord1.scope, coord2.scope)

    # same value? any of both will do
    if cmpValue == 0:
      c1scope = MavenCoord.resolveScope (coord1.scope)
      c2scope = MavenCoord.resolveScope (coord2.scope)
      if c1scope != c2scope:
        if c1scope == newScope:
          return coord1
        else:
          return coord2

      return coord1

    # coord1 > coord2
    if cmpValue > 0:
      if vercmp.satisfies (coord1, coord2):
        return coord1

    # coord2 > coord1 or coord1 is higher and does not satisfies coord2
    if vercmp.satisfies (coord2, coord1):
      return coord2

    raise Exception (
      "Could not resolve conflict! '%s' vs '%s'" % (coord1.id, coord2.id)
    )
 Resolve given coordinate conflict by sticking with the highest
    version that resolves the conflict.

    Returns the coordinate object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    
Resolve given coordinate conflict by sticking with the highest
version that resolves the conflict.

Returns the coordinate object with the highest version that resolves
the conflict.

It raises an exception if it cannot resolve the conflict
Resolve given coordinate conflict by sticking with the highest version that resolves the conflict . Returns the coordinate object with the highest version that resolves the conflict . It raises an exception if it cannot resolve the conflict
def resolveConflict (coord1, coord2):
    cmpValue = vercmp.compare (coord1.id, coord2.id)
    newScope = MavenCoord.resolveScopeConflict (coord1.scope, coord2.scope)
    if cmpValue == 0:
      c1scope = MavenCoord.resolveScope (coord1.scope)
      c2scope = MavenCoord.resolveScope (coord2.scope)
      if c1scope != c2scope:
        if c1scope == newScope:
          return coord1
        else:
          return coord2
      return coord1
    if cmpValue > 0:
      if vercmp.satisfies (coord1, coord2):
        return coord1
    if vercmp.satisfies (coord2, coord1):
      return coord2
    raise Exception (
      "Could not resolve conflict! '%s' vs '%s'" % (coord1.id, coord2.id)
    )
def resolveConflict ( coord1 , coord2 ) : cmpValue = vercmp . compare ( coord1 . id , coord2 . id ) newScope = MavenCoord . resolveScopeConflict ( coord1 . scope , coord2 . scope ) if cmpValue == 0 : c1scope = MavenCoord . resolveScope ( coord1 . scope ) c2scope = MavenCoord . resolveScope ( coord2 . scope ) if c1scope != c2scope : if c1scope == newScope : return coord1 else : return coord2 return coord1 if cmpValue > 0 : if vercmp . satisfies ( coord1 , coord2 ) : return coord1 if vercmp . satisfies ( coord2 , coord1 ) : return coord2 raise Exception ( "Could not resolve conflict! '%s' vs '%s'" % ( coord1 . id , coord2 . id ) )
Resolve given coordinate conflict by sticking with the highest
version that resolves the conflict.
Resolve given coordinate conflict by sticking with the highest version that resolves the conflict .
""" Resolve given coordinate conflict by sticking with the highest
    version that resolves the conflict.

    Returns the coordinate object with the highest version that resolves
    the conflict.

    It raises an exception if it cannot resolve the conflict
    """ # same value? any of both will do # coord1 > coord2 # coord2 > coord1 or coord1 is higher and does not satisfies coord2
coord1
coord2