Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgInternals.java @ 368:8107b95f4280
Update Javadoc with 'revision index'
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 16 Dec 2011 16:00:57 +0100 |
parents | 2fadf8695f8a |
children | 82336b7c54f4 |
comparison
equal
deleted
inserted
replaced
367:2fadf8695f8a | 368:8107b95f4280 |
---|---|
132 public static SessionContext getContext(HgRepository repo) { | 132 public static SessionContext getContext(HgRepository repo) { |
133 return repo.getContext(); | 133 return repo.getContext(); |
134 } | 134 } |
135 | 135 |
136 | 136 |
137 // Convenient check of local revision number for validity (not all negative values are wrong as long as we use negative constants) | 137 // Convenient check of revision index for validity (not all negative values are wrong as long as we use negative constants) |
138 public static boolean wrongRevisionIndex(int rev) { | 138 public static boolean wrongRevisionIndex(int rev) { |
139 return rev < 0 && rev != TIP && rev != WORKING_COPY && rev != BAD_REVISION; | 139 return rev < 0 && rev != TIP && rev != WORKING_COPY && rev != BAD_REVISION; |
140 } | 140 } |
141 | 141 |
142 // throws HgInvalidRevisionException or IllegalArgumentException if [start..end] range is not a subrange of [0..lastRevision] | 142 // throws HgInvalidRevisionException or IllegalArgumentException if [start..end] range is not a subrange of [0..lastRevision] |