comparison src/org/tmatesoft/hg/core/Nodeid.java @ 125:26ad21b250e4

Explicit op to tell merge revisions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 15 Feb 2011 06:40:36 +0100
parents a3a2e5deb320
children 1a7a9a20e1f9
comparison
equal deleted inserted replaced
124:cea84c5995e6 125:26ad21b250e4
60 } 60 }
61 61
62 @Override 62 @Override
63 public boolean equals(Object o) { 63 public boolean equals(Object o) {
64 if (o instanceof Nodeid) { 64 if (o instanceof Nodeid) {
65 return Arrays.equals(this.binaryData, ((Nodeid) o).binaryData); 65 return this == o || equalsTo(((Nodeid) o).binaryData);
66 } 66 }
67 return false; 67 return false;
68 } 68 }
69 69
70 public boolean equalsTo(byte[] buf) { 70 public boolean equalsTo(byte[] buf) {