add an id field to the rcs_recentchanges return structure
There was an undocumented field named "rev", I think "id" is a better name, and nothing uses it yet.master
parent
ad6d22f237
commit
b11ddb88e6
|
@ -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,
|
||||
|
|
|
@ -407,7 +407,7 @@ sub rcs_recentchanges ($) { #{{{
|
|||
}
|
||||
|
||||
push @rets, {
|
||||
rev => $sha1,
|
||||
id => $sha1,
|
||||
user => $user,
|
||||
committype => $type,
|
||||
when => $when,
|
||||
|
|
|
@ -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"}),
|
||||
|
|
|
@ -438,7 +438,7 @@ sub rcs_recentchanges ($) { #{{{
|
|||
}
|
||||
|
||||
push @ret, {
|
||||
rev => $rev,
|
||||
id => $rev,
|
||||
user => $user,
|
||||
committype => $committype,
|
||||
when => $when,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue