'@return: versioncontrol instance represented as manifest XML
@rtype: str'

def xml(self):

    if self.url:
        return ('<versioncontrol    type="%s"    url="%s"    />' % (self.type, self.url))
    else:
        return ('<versioncontrol    type="%s"    />' % self.type)
