Menu

#8 New features: Prevent diffs, generate CVSWeb URL references

open
nobody
None
5
2003-03-18
2003-03-18
No

(Crossposted between mailing list and the patch tracker
on the SF project website)

This patch adds two new features:

1. Options -n / --nodiffs prevents diff output even if
the loginfo format string is %{sVv}.

2. Options -l / --links generate URL references to a
CVSWeb service (such as Sourceforge's). Options -w /
--cvsweb and -r / --repo control which CVSWeb service
is to be referenced.

The patch is relative to CVS version 1.29

Discussion

  • Michael Hohmuth

    Michael Hohmuth - 2003-03-18

    Logged In: YES
    user_id=535753

    (Too bad the file upload didn't work. I'll post the patch
    to the mailing list.)

     
  • Michael Hohmuth

    Michael Hohmuth - 2003-03-19

    Logged In: YES
    user_id=535753

    In retrospect, it was a bad idea to use "<>" braces around
    the URLs syncmail generates with this patch: SF's
    mailing-list archiving software doesn't grok this syntax and
    includes the closing ">" in the URL is recovers from emails.
    I therefore suggest to remove the braces:

    Index: syncmail

    RCS file: /cvsroot/opencxx/CVSROOT/syncmail,v
    retrieving revision 1.7
    retrieving revision 1.8
    diff -u -p -r1.7 -r1.8
    --- syncmail 18 Mar 2003 20:37:45 -0000 1.7
    +++ syncmail 19 Mar 2003 11:45:15 -0000 1.8
    @@ -144,9 +144,9 @@ MAILPORT = 25
    CVSWEB_HOST = "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi"
    CVSWEB_REPO = "opencxx"

    -CVSWEB_NEW = "%s (New):
    <%s/%s/%s?rev=%s&content-type=text/vnd.viewcvs-markup>"
    -CVSWEB_DEL = "%s (Deleted):
    <%s/%s/%s?rev=%s&content-type=text/vnd.viewcvs-markup>"
    -CVSWEB_CHG = "%s: <%s/%s/%s.diff?r1=%s&r2=%s>"
    +CVSWEB_NEW = "%s (New):
    %s/%s/%s?rev=%s&content-type=text/vnd.viewcvs-markup"
    +CVSWEB_DEL = "%s (Deleted):
    %s/%s/%s?rev=%s&content-type=text/vnd.viewcvs-markup"
    +CVSWEB_CHG = "%s: %s/%s/%s.diff?r1=%s&r2=%s"

    # Diff trimming stuff
    DIFF_HEAD_LINES = 20

     
  • Michael Hohmuth

    Michael Hohmuth - 2003-04-01

    Logged In: YES
    user_id=535753

    Here is a new, bug-fixed version of my patch (again relative
    to CVS revision 1.29. In this version, it now generates
    correct CVSWeb references for deleted files (aka files in
    the Attic).

    (Let's see if my patch is attached to my comment this time;
    if not, I'll send it in separate mail to the mailing list.)

     
  • Michael Hohmuth

    Michael Hohmuth - 2003-04-01

    New revision of patch -- copes with files in Attic

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.