To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / models / changeset.rb.rej @ 438:34214e593c67
History | View | Annotate | Download (501 Bytes)
| 1 |
--- app/models/changeset.rb |
|---|---|
| 2 |
+++ app/models/changeset.rb |
| 3 |
@@ -152,6 +152,15 @@ |
| 4 |
def self.normalize_comments(str) |
| 5 |
to_utf8(str.to_s.strip) |
| 6 |
end |
| 7 |
+ |
| 8 |
+ # Creates a new Change from it's common parameters |
| 9 |
+ def create_change(change) |
| 10 |
+ Change.create(:changeset => self, |
| 11 |
+ :action => change[:action], |
| 12 |
+ :path => change[:path], |
| 13 |
+ :from_path => change[:from_path], |
| 14 |
+ :from_revision => change[:from_revision]) |
| 15 |
+ end |
| 16 |
|
| 17 |
private |
| 18 |
|