diff options
-rw-r--r-- | lib/puppet/provider/vcsrepo/svn.rb | 4 | ||||
-rw-r--r-- | spec/unit/puppet/provider/vcsrepo/svn_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb index bfc9b76..e0d5b21 100644 --- a/lib/puppet/provider/vcsrepo/svn.rb +++ b/lib/puppet/provider/vcsrepo/svn.rb @@ -66,7 +66,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) def latest args = buildargs.push('info', '-r', 'HEAD') at_path do - svn(*args)[/^Last Changed Rev:\s+(\d+)/m, 1] + svn(*args)[/^Revision:\s+(\d+)/m, 1] end end @@ -80,7 +80,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) def revision args = buildargs.push('info') at_path do - svn(*args)[/^Last Changed Rev:\s+(\d+)/m, 1] + svn(*args)[/^Revision:\s+(\d+)/m, 1] end end diff --git a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb index 675fc0b..5c03327 100644 --- a/spec/unit/puppet/provider/vcsrepo/svn_spec.rb +++ b/spec/unit/puppet/provider/vcsrepo/svn_spec.rb @@ -61,7 +61,7 @@ describe_provider :vcsrepo, :svn, :resource => {:path => '/tmp/vcsrepo'} do end it "should use 'svn info'" do expects_chdir - provider.revision.should == '3' # From 'Last Changed Rev', not 'Revision' + provider.revision.should == '4' # From 'Revision', not 'Last Changed Rev' end end |