monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] [PATCH] database::get_branches method, ls_branches test


From: Marcel van der Boom
Subject: [Monotone-devel] [PATCH] database::get_branches method, ls_branches tests
Date: Wed, 20 Jul 2005 11:32:11 +0200

The attached patch adds a method to the database class specifically for getting branchnames. The existing code would get ALL branch certificates (which in our db would be 29000 rows in the result set). The patch makes this return only the needed records (113 in the aforementioned db).

The code was used in ls branches and in netsync.cc, both occurances have been changed to use the new method.
The patch also adds a couple of tests for ls branches:
- ls branches is empty on an empty db
- ls branches returns the right branches (sorted)
- if a branch occurs in the ignore_branch hooks, it should not get returned.

Thanks to Nathaniel for the hand holding

marcel


--

Attachment: ls_branches.patch
Description: Binary data

Marcel van der Boom
HS-Development BV               --   http://www.hsdev.com
So! webapplicatie framework  --   http://make-it-so.info

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]