public
Fork of evilchelu/braid
Description: Simple tool for managing vendor branches across different SCMs
Homepage: http://evil.che.lu/projects/braid
Clone URL: git://github.com/fsvehla/braid.git
get isvn remote revision in a safer way using svn log instead of svn info
evilchelu (author)
Mon Mar 10 11:52:17 -0700 2008
commit  6e21617a196666ca726cf16d3257bb7aa0e7df0a
tree    189d85261126b871064ea1c429f7e31afa18da2b
parent  ab0002ed39552e7b8396da8ba4d8ef9dbf768aa6
...
51
52
53
54
55
 
 
 
 
56
57
58
...
51
52
53
 
 
54
55
56
57
58
59
60
0
@@ -51,8 +51,10 @@ module Braid
0
         end
0
 
0
         def svn_remote_revision(path)
0
- status, out, err = exec!("svn info #{path}")
0
- YAML.load(out)["Last Changed Rev"]
0
+ # not using svn info because it's retarded and doesn't show the actual last changed rev for the url
0
+ # also, git svn has no clue on how to get the actual HEAD # on it's own
0
+ status, out, err = exec!("svn log -q --limit 1 #{path}")
0
+ out.split(/\n/).find {|x| x.match /^r\d+/}.split(" ")[0][1..-1]
0
         end
0
 
0
     end

Comments

    No one has commented yet.