Examples of revert()


Examples of org.eclipse.jgit.api.Git.revert()

            "An error occured when reverting.", null));

      ObjectId objectId = db.resolve(commitToRevert);
      Git git = new Git(db);

      RevertCommand revertCommand = git.revert().include(objectId);
      RevCommit revertedCommit = revertCommand.call();

      if (revertedCommit == null) {
        JSONObject result = new JSONObject();
        result.put(GitConstants.KEY_RESULT, "FAILURE"); //$NON-NLS-1$
View Full Code Here

Examples of org.exist.versioning.svn.WorkingCopy.revert()

        String wcDir = args[0].getStringValue();
       
        try {
          WorkingCopy wc = new WorkingCopy("", "");

          wc.revert(new File[] { new Resource(wcDir) });

        } catch (SVNException svne) {
      svne.printStackTrace();
      throw new XPathException(this,
          "error while revert '" + wcDir + "'", svne);
View Full Code Here

Examples of org.geoserver.sldservice.utils.classifier.impl.BlueColorRamp.revert()

        assertEquals(11, blueRamp.getNumClasses());
        List<Color> colors = blueRamp.getRamp();
        assertEquals("Incorrect size for color ramp", 10, colors.size());
        assertEquals("Incorrect value for 1st color", new Color(0,0, minColorInt), colors.get(0));
        assertEquals("Incorrect value for last color", new Color(0,0,maxColorInt), colors.get(9));
        blueRamp.revert();
        List<Color> reverseColors =  blueRamp.getRamp();
        assertEquals("Incorrect value for last reverse color", new Color(0,0, minColorInt), reverseColors.get(9));
        assertEquals("Incorrect value for 1st reverse color", new Color(0,0,maxColorInt), reverseColors.get(0));
    }
View Full Code Here

Examples of org.geoserver.sldservice.utils.classifier.impl.GrayColorRamp.revert()

        assertEquals(11, grayRamp.getNumClasses());
        List<Color> colors = grayRamp.getRamp();
        assertEquals("Incorrect size for color ramp", 10, colors.size());
        assertEquals("Incorrect value for 1st color", new Color(minColorInt, minColorInt, minColorInt), colors.get(0));
        assertEquals("Incorrect value for last color", new Color(maxColorInt,maxColorInt,maxColorInt), colors.get(9));
        grayRamp.revert();
        List<Color> reverseColors =  grayRamp.getRamp();
        assertEquals("Incorrect value for last reverse color", new Color(minColorInt, minColorInt, minColorInt), reverseColors.get(9));
        assertEquals("Incorrect value for 1st reverse color", new Color(maxColorInt,maxColorInt,maxColorInt), reverseColors.get(0));
    }
View Full Code Here

Examples of org.geoserver.sldservice.utils.classifier.impl.JetColorRamp.revert()

        List<Color> colors = jetRamp.getRamp();
        assertEquals("Incorrect size for color ramp", 10, colors.size());
        assertEquals("Incorrect value for 1st color", new Color(0,0,255), colors.get(0));
        assertEquals("Incorrect value for last color", new Color(255,0,0), colors.get(9));

        jetRamp.revert();
        List<Color> reverseColors =  jetRamp.getRamp();
        assertEquals("Incorrect value for last reverse color", new Color(0,0,255), reverseColors.get(9));
        assertEquals("Incorrect value for 1st reverse color", new Color(255,0,0), reverseColors.get(0));
    }
View Full Code Here

Examples of org.geoserver.sldservice.utils.classifier.impl.RedColorRamp.revert()

        assertEquals(11, redRamp.getNumClasses());
        List<Color> colors = redRamp.getRamp();
        assertEquals("Incorrect size for color ramp", 10, colors.size());
        assertEquals("Incorrect value for 1st color", new Color(minColorInt,0,0), colors.get(0));
        assertEquals("Incorrect value for last color",new Color(maxColorInt,0,0), colors.get(9));
        redRamp.revert();
        List<Color> reverseColors =  redRamp.getRamp();
        assertEquals("Incorrect value for last reverse color", new Color(maxColorInt,0,0), reverseColors.get(0));
        assertEquals("Incorrect value for 1st reverse color", new Color(minColorInt,0,0), reverseColors.get(9));
    }
View Full Code Here

Examples of org.jboss.as.controller.services.path.PathManagerService.PathEventContextImpl.revert()

                            if (pathEventContext.isInstallServices()) {
                                if (legacyService != null) {
                                    context.removeService(legacyService.getName());
                                }
                            } else {
                                pathEventContext.revert();
                            }
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
View Full Code Here

Examples of org.jboss.as.controller.services.path.PathManagerService.PathEventContextImpl.revert()

                                        throw new RuntimeException(e);
                                    }
                                    pathManager.changeRelativePathServices(context, pathName, currentValue.isDefined() ?  currentValue.asString() : null);
                                }
                            } else {
                                pathEventContext.revert();
                            }
                        }
                    });
                }
            }, Stage.RUNTIME);
View Full Code Here

Examples of org.jboss.as.controller.services.path.PathManagerService.PathEventContextImpl.revert()

                    throw new RuntimeException(e);
                }
                pathManager.changeRelativePathServices(context, pathName, valueToRestore.isDefined() ?  valueToRestore.asString() : null, null);
            }
        } else {
            pathEventContext.revert();
        }
    }

    static class PathUpdate {
        private final PathEntry backup;
View Full Code Here

Examples of org.jboss.as.controller.services.path.PathManagerService.PathEventContextImpl.revert()

                            if (pathEventContext.isInstallServices()) {
                                if (legacyService != null) {
                                    context.removeService(legacyService.getName());
                                }
                            } else {
                                pathEventContext.revert();
                            }
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.