[MERGE] using NULL_REVISION everywhere
Robert Collins
robertc at robertcollins.net
Thu Jul 12 07:18:23 BST 2007
On Thu, 2007-07-12 at 02:07 -0400, Aaron Bentley wrote:
> > +class TestUncommit(TestCaseWithWorkingTree):
> > +
> > + def test_uncommit_to_null(self):
> > + tree = self.make_branch_and_tree('branch')
> > + tree.lock_write()
> > + revid = tree.commit('a revision')
> > + tree.unlock()
> > + uncommit.uncommit(tree.branch, tree=tree)
> > + self.assertEqual([], tree.get_parent_ids())
> >
> > This should go in bzrlib.tests.workingtree_implementations.test_uncommit IMO.
>
> You mean create a whole new file for this test?
Yup. I think we'll probably be adding per-tree uncommit tests of other
bits too later, so having a dedicated file makes sense to me.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070712/77a06b8f/attachment.pgp
More information about the bazaar
mailing list