logo       


newer CVS loginfo format string patch: msg#00003

Subject: newer CVS loginfo format string patch
Hi all:

I am working on a patch to loginfo-handler to support the _new_ string format for CVS. Specifically loginfo will now pass each filename and version as separate arguments. Right now, even in yesterday's dev, I noticed that ViewVC still requires the comatibility option, %1{sVv}, which makes CVS spit warnings to CVS clients.

Specifically CVS 1.12.9 from Debian/stable.

My proposal is to have loginfo-handler also handle the new CVS args (in addition to the old cvs way, and the cvsnt way). Each new CVS loginfo arg is as follows. I am proposing to call loginfo-handler for newer CVS's like this:

        <path/bin/loginfo-handler %p %{sVv}

This will make the args:

argv[1] = modulename(directory name) (This is the %p)

Then, every next three args will be (n=2 .. n=x)
argv[n]   = filename
argv[n+1] = old_version
argv[n+2] = new_version

then n=n+3, etc...

I have a working patch now. I am not sure if there are any preferences on how it will work. Since the _new_ way CVS does files and versions, each one becomes a separate argument, there is no need to do weird reg-ex matching. Counting up and grouping by threes is all that is required.

Suggestions? I know it needs some clean up to make it a nice enough patch for actual inclusion, but, prior to doing any bigger changes, I just wanted to pass it by some of you.

The only real change is between the "if len(sys.argv) > 3:" and the "else:". The > 1 and >2 sections just happen iff > 3 doesn't happen.

patch is attached; patched against:
        viewvc-1.1-dev-20060911/bin/loginfo-handler

Thanks,
Jeremy

--
"Prediction is very difficult, especially of the future."
                                   Niels Bohr
http://www.nirvani.net


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe