From: Robin Rosenberg Date: Thu, 13 Nov 2008 22:13:14 GMT Subject: Re: [EGIT PATCH 1/7] Test the origName part of the key vs the ref itself Message-ID: <200811132313.14590.robin.rosenberg.lists@dewire.com> In-Reply-To: <20081111180520.GN2932@spearce.org> tisdag 11 november 2008 19:05:20 skrev Shawn O. Pearce: > Robin Rosenberg wrote: > > @@ -127,4 +129,12 @@ public void testDeleteEmptyDirs() throws IOException { > > private void assertExists(final boolean expected, final String name) { > > assertEquals(expected, new File(db.getDirectory(), name).exists()); > > } > > + > > + public void testRefKeySameAsOrigName() { > > + Map allRefs = db.getAllRefs(); > > + for (Entry e : allRefs.entrySet()) { > > + assertEquals(e.getKey(), e.getValue().getOrigName()); > > + > > + } > > + } > > Hmm, doesn't this have to go after "Keep original ref name ..." > so getOrigName() is actually defined? Oops, Seems we should try to build each new commit before accepting a push. Shouldn't be too hard. -- robin