Exemple #1
0
    def test_url_from_path(self):
        """Test svn_client_url_from_path for a file:// URL"""
        self.assertEquals(client.url_from_path(self.repos_uri), self.repos_uri)

        rev = core.svn_opt_revision_t()
        rev.kind = core.svn_opt_revision_head

        path = self.temper.alloc_empty_dir("-url_from_path")

        client.checkout2(self.repos_uri, path, rev, rev, True, True, self.client_ctx)

        self.assertEquals(client.url_from_path(path), self.repos_uri)
  def test_url_from_path(self):
    """Test svn_client_url_from_path for a file:// URL"""
    self.assertEqual(client.url_from_path(self.repos_uri), self.repos_uri)

    rev = core.svn_opt_revision_t()
    rev.kind = core.svn_opt_revision_head

    path = self.temper.alloc_empty_dir('-url_from_path')

    client.checkout2(self.repos_uri, path, rev, rev, True, True,
                     self.client_ctx)

    self.assertEqual(client.url_from_path(path), self.repos_uri)
Exemple #3
0
    def test_url_from_path(self):
        """Test svn_client_url_from_path for a file:// URL"""
        self.assertEquals(client.url_from_path(REPOS_URL), REPOS_URL)

        rev = core.svn_opt_revision_t()
        rev.kind = core.svn_opt_revision_head

        path = tempfile.mktemp('-url_from_path')

        client.checkout2(REPOS_URL, path, rev, rev, True, True,
                         self.client_ctx)

        self.assertEquals(client.url_from_path(path), REPOS_URL)
Exemple #4
0
  def test_url_from_path(self):
    """Test svn_client_url_from_path for a file:// URL"""
    self.assertEquals(client.url_from_path(REPOS_URL), REPOS_URL)

    rev = core.svn_opt_revision_t()
    rev.kind = core.svn_opt_revision_head

    path = tempfile.mktemp('-url_from_path')

    client.checkout2(REPOS_URL, path, rev, rev, True, True,
                     self.client_ctx)

    self.assertEquals(client.url_from_path(path), REPOS_URL)