mercurial-ruby 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -6,7 +6,7 @@ require 'time'
6
6
  #
7
7
  module Mercurial
8
8
 
9
- VERSION = '0.7.2'
9
+ VERSION = '0.7.3'
10
10
 
11
11
  class Error < RuntimeError; end
12
12
 
@@ -76,6 +76,10 @@ module Mercurial
76
76
  repository.commits.by_hash_ids(parents_ids)
77
77
  end
78
78
 
79
+ def trivial_parents_ids
80
+ hg(["parents -r ? --template '{node}\n'", hash_id]).split("\n")
81
+ end
82
+
79
83
  def ancestors
80
84
  repository.commits.ancestors_of(hash_id)
81
85
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mercurial-ruby}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2012-03-08}
12
+ s.date = %q{2012-03-14}
13
13
  s.description = %q{Ruby API for Mercurial DVCS.}
14
14
  s.email = %q{ilya.sabanin@gmail.com}
15
15
  s.extra_rdoc_files = [
data/test/test_commit.rb CHANGED
@@ -71,5 +71,10 @@ describe Mercurial::Commit do
71
71
  stats['deletions'].must_equal 6
72
72
  stats['total'].must_equal 91
73
73
  end
74
+
75
+ it "should return IDs of it's trivial parents" do
76
+ commit = @repository.commits.by_hash_id('bc729b15e2b5')
77
+ commit.trivial_parents_ids.must_equal %w(bf6386c0a0ccd1282dbbe51888f52fe82b1806e3)
78
+ end
74
79
 
75
80
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercurial-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-08 00:00:00 -05:00
18
+ date: 2012-03-14 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency