示例#1
0
    def test_log3_url(self):
        """Test svn_client_log3 on a file:// URL"""
        directory = urljoin(self.repos_uri + "/", "trunk/dir1")

        start = core.svn_opt_revision_t()
        end = core.svn_opt_revision_t()
        core.svn_opt_parse_revision(start, end, "4:0")
        client.log3((directory,), start, start, end, 1, True, False, self.log_receiver, self.client_ctx)
        self.assertEqual(self.change_author, "john")
        self.assertEqual(self.log_message, "More directories.")
        self.assertEqual(len(self.changed_paths), 3)
        for dir in ("/trunk/dir1", "/trunk/dir2", "/trunk/dir3"):
            self.assert_(dir in self.changed_paths)
            self.assertEqual(self.changed_paths[dir].action, "A")
示例#2
0
  def test_log3_url(self):
    """Test svn_client_log3 on a file:// URL"""
    directory = urljoin(self.repos_uri+b"/", b"trunk/dir1")

    start = core.svn_opt_revision_t()
    end = core.svn_opt_revision_t()
    core.svn_opt_parse_revision(start, end, b"4:0")
    client.log3((directory,), start, start, end, 1, True, False,
        self.log_receiver, self.client_ctx)
    self.assertEqual(self.change_author, b"john")
    self.assertEqual(self.log_message, b"More directories.")
    self.assertEqual(len(self.changed_paths), 3)
    for dir in (b'/trunk/dir1', b'/trunk/dir2', b'/trunk/dir3'):
      self.assertTrue(dir in self.changed_paths)
      self.assertEqual(self.changed_paths[dir].action, b'A')
示例#3
0
    def test_log3_url(self):
        """Test svn_client_log3 on a file:// URL"""
        dir = urljoin(REPOS_URL + "/", "trunk/dir1")

        start = core.svn_opt_revision_t()
        end = core.svn_opt_revision_t()
        core.svn_opt_parse_revision(start, end, "4:0")
        client.log3((dir, ), start, start, end, 1, True, False,
                    self.log_receiver, self.client_ctx)
        self.assertEqual(self.change_author, "john")
        self.assertEqual(self.log_message, "More directories.")
        self.assertEqual(len(self.changed_paths), 3)
        for dir in ('/trunk/dir1', '/trunk/dir2', '/trunk/dir3'):
            self.assert_(self.changed_paths.has_key(dir))
            self.assertEqual(self.changed_paths[dir].action, 'A')
示例#4
0
文件: client.py 项目: vocho/openqnx
  def test_log3_url(self):
    """Test svn_client_log3 on a file:// URL"""
    dir = urljoin(REPOS_URL+"/", "trunk/dir1")

    start = core.svn_opt_revision_t()
    end = core.svn_opt_revision_t()
    core.svn_opt_parse_revision(start, end, "4:0")
    client.log3((dir,), start, start, end, 1, True, False, self.log_receiver,
        self.client_ctx)
    self.assertEqual(self.change_author, "john")
    self.assertEqual(self.log_message, "More directories.")
    self.assertEqual(len(self.changed_paths), 3)
    for dir in ('/trunk/dir1', '/trunk/dir2', '/trunk/dir3'):
      self.assert_(self.changed_paths.has_key(dir))
      self.assertEqual(self.changed_paths[dir].action, 'A')