code: public static List<String> getCurrentRevisionIDs(Document doc) throws ForestException {
          List<String> currentRevIDs = new ArrayList<String>();
          do {
              currentRevIDs.add(doc.getSelectedRevID());
          } while (doc.selectNextLeaf(false, false));
          return currentRevIDs;
      }
docs: Not include deleted leaf node