[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs issue about sync checkout/checkin between two modules.

From: Jim Hyslop
Subject: Re: cvs issue about sync checkout/checkin between two modules.
Date: Fri, 31 Oct 2008 15:34:44 -0400
User-agent: Thunderbird (Macintosh/20080914)

Hash: SHA1

Marco wrote:
> can you point out some sample about cvs script for me?  I appreciate you
> so much.

It wouldn't be a CVS script, it would be a shell script, batch file, or
even a makefile. The exact contents are project-specific and
platform-specific, but the following *MIGHT* get you close (I haven't
tested this series of commands, so I can't vouch for how well it works):

cvs co moduleA
cd moduleA
cvs co -d f_file /repository/path/to/f
cd ..
cvs co moduleB
cd moduleB
cvs co -d f_file /repository/path/to/f

And in your response to Arthur Barrett:
> Thank you for the more consideration.
> But it's the mandatory request, so I cannot change the original idea.

Arthur is right - what these people are asking is almost certainly going
to cause headaches and problems down the road.

Push back at them, and try to find out what they *really* want - why are
they insisting that the file MUST appear twice.

It's been my experience that when people ask for something exotic like
this, they are usually trying to solve a particular problem, and the
solution they have come up with - and ask you to implement - is the best
they can think of - given what they know. So they only ask for what they

As a crude example, suppose someone says they want help writing a batch
file that contains something like:

cp file1 /some/path/file1
cp file2 /some/path/file2
rm file1
rm file2

and this batch file has to be modified each time it is used, because the
list of files changes each time.

You, being the smart person you are, ask "Hmmm - that sounds pretty
labour-intensive. What are you trying to accomplish here?" The answer:
"I want to move all the files from this directory to /some/path." This
person does not know about the 'mv' command, nor do they know about
wildcards. By asking what they REALLY want, you can now tell them "Oh,
that's easy - just use this command: 'mv * /some/path'

- --
Jim Hyslop
Dreampossible: Better software. Simply.
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -


reply via email to

[Prev in Thread] Current Thread [Next in Thread]