public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* commit_prep perl question
@ 2003-07-29 20:57 Phil Edwards
  2003-07-29 21:01 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Edwards @ 2003-07-29 20:57 UTC (permalink / raw)
  To: overseers

Okay, actually two questions:

1) How do I test changes to commit_prep before presenting them for approval?

2) In the generalized commit_prep, there is basically this code:

    sub check_version {
        local($filename, $cvsversion) = @_;

        .... $cvsversion{...} ....
    }

    ....
    $cvsversion{...} = ....;

    foreach $arg (@files) {
        &check_version($arg);
    }

check_version is passed one argument, but accepts two, and the second
local formal parameter name is the same as a global hash variable name.
Is this a bug, or does perl actually work like that?


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: commit_prep perl question
  2003-07-29 20:57 commit_prep perl question Phil Edwards
@ 2003-07-29 21:01 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2003-07-29 21:01 UTC (permalink / raw)
  To: Phil Edwards; +Cc: overseers

Phil> 1) How do I test changes to commit_prep before presenting them
Phil> for approval?

Make a dummy repository somewhere and try it there.

Phil> 2) In the generalized commit_prep, there is basically this code:
Phil> [ ... ]

Looks like a bug to me.  I didn't look at the code, just your
extraction.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-29 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29 20:57 commit_prep perl question Phil Edwards
2003-07-29 21:01 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).