2 * Copyright (c) 2007, Your Corporation. All Rights Reserved.
5 package com
.intellij
.openapi
.vcs
.changes
;
7 import com
.intellij
.openapi
.vcs
.FilePath
;
8 import com
.intellij
.openapi
.vcs
.VcsException
;
9 import com
.intellij
.openapi
.vcs
.history
.VcsRevisionNumber
;
10 import org
.jetbrains
.annotations
.NotNull
;
11 import org
.jetbrains
.annotations
.Nullable
;
16 public class SimpleContentRevision
implements ContentRevision
{
17 private final String myContent
;
18 private final FilePath myNewFilePath
;
19 private final String myRevision
;
21 public SimpleContentRevision(final String content
, final FilePath newFilePath
, final String revision
) {
23 myNewFilePath
= newFilePath
;
24 myRevision
= revision
;
28 public String
getContent() throws VcsException
{
33 public FilePath
getFile() {
38 public VcsRevisionNumber
getRevisionNumber() {
39 return new VcsRevisionNumber() {
40 public String
asString() {
44 public int compareTo(final VcsRevisionNumber o
) {