Merge lp:~jelmer/launchpad/no-revhistory-3 into lp:launchpad
Proposed by
Jelmer Vernooij
on 2012-06-26
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Graham Binns on 2012-06-26 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15498 | ||||
| Proposed branch: | lp:~jelmer/launchpad/no-revhistory-3 | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~jelmer/launchpad/no-revhistory-2 | ||||
| Diff against target: |
177 lines (+94/-8) 3 files modified
lib/lp/code/bzr.py (+36/-0) lib/lp/code/tests/test_bzr.py (+53/-5) lib/lp/codehosting/scanner/bzrsync.py (+5/-3) |
||||
| To merge this branch: | bzr merge lp:~jelmer/launchpad/no-revhistory-3 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2012-06-26 | Approve on 2012-06-26 |
|
Review via email:
|
|||
Commit Message
Remove use of Repository.
Description of the Change
Remove use of Repository.
Instead, this imports the get_ancestry() code into Launchpad, albeit a little bit simplified.
This is simpler than my previous attempt at getting rid of Repository.
To post a comment you must log in.

Couple of nitpicks, nothing major:
[1]
104 + def test_missing_ revision( self):
109 + def test_some(self):
122 + def test_children( self):
These all need leading comments or docstrings explaining the expected
behaviour for which they're testing, e.g.:
def test_foo_ bars(self) :
"""When called, foo() returns bar."""
...
[2]
109 + def test_some(self): branch( 'test') bzrdir. create_ workingtree( ) branch. repository, 'A')) branch. repository, 'B')) branch. repository, 'C'))
110 + branch = self.make_
111 + wt = branch.
112 + wt.commit('msg a', rev_id='A')
113 + wt.commit('msg b', rev_id='B')
114 + wt.commit('msg c', rev_id='C')
115 + self.assertEqual(
116 + set(['A']), get_ancestry(
117 + self.assertEqual(
118 + set(['A', 'B']), get_ancestry(
119 + self.assertEqual(
120 + set(['A', 'B', 'C']), get_ancestry(
s/wt/tree (or something meaningful). Same thing in test_children().