add an id field to the rcs_recentchanges return structure
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 01:34:11 +0000 (20:34 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 01:34:11 +0000 (20:34 -0500)
There was an undocumented field named "rev", I think "id" is a better name,
and nothing uses it yet.

IkiWiki/Rcs/Stub.pm
IkiWiki/Rcs/git.pm
IkiWiki/Rcs/mercurial.pm
IkiWiki/Rcs/monotone.pm
IkiWiki/Rcs/svn.pm
IkiWiki/Rcs/tla.pm

index 19ecfa88df571bd2ca4553c4c9bbc0690ba12188..a979ce3fe6036ed956cd0b8fcecec3e85cd9f129 100644 (file)
@@ -37,6 +37,7 @@ sub rcs_recentchanges ($) {
        # Examine the RCS history and generate a list of recent changes.
        # The data structure returned for each change is:
        # {
+       #       id => # the RCSs id for this commit
        #       user => # name of user who made the change,
        #       committype => # either "web" or the name of the rcs,
        #       when => # time when the change was made,
index 80ffdced26b3318a08a3d469effac42fab33ee29..9640acfbe284ec476af79fc365c581b1a761ab26 100644 (file)
@@ -407,7 +407,7 @@ sub rcs_recentchanges ($) { #{{{
                }
 
                push @rets, {
-                       rev        => $sha1,
+                       id         => $sha1,
                        user       => $user,
                        committype => $type,
                        when       => $when,
index 15edb324581dc33e912dc17f214117b419fa689f..e5258b111300e6470f2939c01b0f2faba714c62d 100644 (file)
@@ -139,7 +139,7 @@ sub rcs_recentchanges ($) { #{{{
                $user =~ s/^\s*//;
 
                push @ret, {
-                       rev        => $info->{"changeset"},
+                       id         => $info->{"changeset"},
                        user       => $user,
                        committype => "mercurial",
                        when       => time - str2time($info->{"date"}),
index 5717e004342875e97259cc09fe22b77f7b981810..e0f2e046a3c9ffd4c76da717a9a82429a0391094 100644 (file)
@@ -438,7 +438,7 @@ sub rcs_recentchanges ($) { #{{{
                }
                
                push @ret, {
-                       rev => $rev,
+                       id => $rev,
                        user => $user,
                        committype => $committype,
                        when => $when,
index 987469ba07a221c561825968b05e347acf5b8ada..a32b0a8403a1b0d184748a3867e34da4285d165e 100644 (file)
@@ -203,7 +203,8 @@ sub rcs_recentchanges ($) { #{{{
                                diffurl => $diffurl,
                        } if length $file;
                }
-               push @ret, { rev => $rev,
+               push @ret, {
+                       id => $rev,
                        user => $user,
                        committype => $committype,
                        when => $when,
index 1dbc006c11f5372eb566e639a9fd3f3f52706246..5275500c395b5031bfbf627e5d31531abff41a8e 100644 (file)
@@ -145,7 +145,8 @@ sub rcs_recentchanges ($) {
                                diffurl => $diffurl,
                        } if length $file;
                }
-               push @ret, { rev => $change,
+               push @ret, {
+                       id => $change,
                        user => $user,
                        committype => $committype,
                        when => $when,