Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] git-svn: Add 'find-rev' command

From: Eric Wong <hidden>
Date: 2016-06-15 22:43:07

Adam Roben [off-list ref] wrote:
On Apr 29, 2007, at 11:35 AM, Eric Wong wrote:
quoted
Also, if you have time, can you get this (and 'log') to understand
revision numbers even if they're not from the working HEAD?  Thanks.
   Won't the following code accomplish that for find-rev? Perhaps I  
misunderstand you.
working_head_info() only calls rev-list for a given head.

You should probably iterate through (like fetch_all does)
each remote and do rev_db_get via the Git::SVN object.
quoted
quoted
+sub cmd_find_rev {
+	my $revision_or_hash = shift;
+	my $result;
+	if ($revision_or_hash =~ /^r\d+$/) {
+		my $head = shift;
+		$head ||= 'HEAD';
+		my @refs;
+		my (undef, undef, undef, $gs) = working_head_info($head, 
\@refs);
-- 
Eric Wong
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help