Thread (22 messages) flat view 22 messages, 3 authors, 2016-06-15

Re: [EGIT PATCH 1/7] Test the origName part of the key vs the ref itself

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:45:39

tisdag 11 november 2008 19:05:20 skrev Shawn O. Pearce:
Robin Rosenberg [off-list ref] wrote:
quoted
@@ -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<String, Ref> allRefs = db.getAllRefs();
+		for (Entry<String, Ref> 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help