Paul Michali | 1 Jun 2002 14:40
Picon
Favicon
Gravatar

Re: Re: Source Code Control

manaster <at> pobox.com wrote:
> 
> Bill asks:
> >Can you say more about your setup and what you mean by weird?
> 
> It's VB6 running on Windows NT something-or-other, with a
> not-quite-current version of WinCVS.

Hmm. I only toyed with VB for a very short time, but I do recall
some odd things (we used ClearCase). It was something like having
to check out the project file (I think), just to be able to work
with the project and I vaguely recall something about VB modifying
files all the time, such that they all had to be checked in, even
when making a minor change. Maybe someone with more experience with
VB can give you more accurate info...

> 
> Weird?  You add files to a repository, and it complains that they're
> binary, not text, so it won't add them, but it does anyways.  You
> don't change anything, yet it finds a heap of differences and won't
> let you check in without "resolving" the conflict.

I'm using version 1.3.4.3 Beta 4 of WinCVS. I also have it set not
to use locking. I unchecked the box 'Checkout read-only' under the
general tab, before checking out the whole tree. Then, after making
changes, I just do a "commit" to refresh the VC. I find this is an
easy way to work.

>  It gives messages
> in a variety of colors, which evidently have some meaning, but not
(Continue reading)

Edmund Schweppe | 3 Jun 2002 16:28
Picon

Re: Re: Source Code Control

Paul Michali wrote:
> manaster <at> pobox.com wrote:
> > Bill asks:
> > >Can you say more about your setup and what you mean by weird?
> >
> > It's VB6 running on Windows NT something-or-other, with a
> > not-quite-current version of WinCVS.
> 
> Hmm. I only toyed with VB for a very short time, but I do recall
> some odd things (we used ClearCase). It was something like having
> to check out the project file (I think), just to be able to work
> with the project

In general, that's true. (At least through VB6; I haven't gotten down
and dirty with VB.NET yet, but I know it's radically different under the
covers.)

> and I vaguely recall something about VB modifying
> files all the time, such that they all had to be checked in, even
> when making a minor change.

I don't recall this being a problem with VB6. The old SDI format had the
irritating side effect of changing the form's default window coordinates
any time you moved the form editor window around, but VB6's default is
to use an MDI format (selectable on VB6's Tools|Options dialog, Advanced
tab) that doesn't have that issue. 

There's also the chance that you were having issues with changing GUIDs
for custom ActiveX components. If you don't set the project's Version
Compatibility to Binary, VB will change the GUIDs of your objects every
(Continue reading)

Bill de hÓra | 2 Jun 2002 00:01
Favicon

RE: Re: Source Code Control


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: Paul Michali [mailto:pcm <at> cisco.com] 
>
> Anyone know how to 
> deal with files when running Ruby from Unix and DOS?)

Cygwin :)

Bill de hÓra

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPPlETuaWiFwg2CH4EQJ+TgCgl/7LOuFIgEoanN14CoTSGmpKhjsAoK+v
9Kqyjzk1OM11QMJMTQJM9j28
=dV/H
-----END PGP SIGNATURE-----

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Paul Michali | 2 Jun 2002 15:10
Picon
Favicon
Gravatar

Re: Re: Source Code Control

Bill de hÓra wrote:
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > -----Original Message-----
> > From: Paul Michali [mailto:pcm <at> cisco.com]
> >
> > Anyone know how to
> > deal with files when running Ruby from Unix and DOS?)
> 
> Cygwin :)

How can I use cygwin to resolve this? I have it installed,
but haven't used it directly.

My problem is line termination when running Ruby on text
files. I discovered this when I put the files under CVS
control. The files were sitting on a Unix box and, from
my PC at home, I imported them into CVS using WinCVS.
CVS changed the line termination to DOS and when I ran
my Unit tests, they failed. I found that, if I changed
the text files back to Unix format, it worked fine.

Apparently, the pattern matches were failing (e.g. I
had tests like, "if line =~ /^-{48}$/" that failed).

So does anyone know how I can run Ruby from either
DOS or Unix and have this work? Is there a way to tell
(Continue reading)

Bill de hÓra | 3 Jun 2002 14:42
Favicon

RE: Re: Source Code Control


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: Paul Michali [mailto:pcm <at> cisco.com] 
> 
> How can I use cygwin to resolve this? I have it installed,
> but haven't used it directly.

I was being tongue in cheek; one answer to DOS line termination is
not to use DOS.

> My problem is line termination when running Ruby on text
> files. I discovered this when I put the files under CVS 
> control. The files were sitting on a Unix box and, from my PC 
> at home, I imported them into CVS using WinCVS. CVS changed 
> the line termination to DOS and when I ran my Unit tests, 
> they failed. I found that, if I changed the text files back 
> to Unix format, it worked fine.

Ah. There's a checkbox on admin/preferences/globals at the bottom
in WinCVS, which will check out per UNIX eol. I don't think there's
a direct option with CVS command line.

Bill de hÓra

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

(Continue reading)

Paul Michali | 3 Jun 2002 17:42
Picon
Favicon
Gravatar

Re: Re: Source Code Control


> > My problem is line termination when running Ruby on text
> > files. I discovered this when I put the files under CVS
> > control. The files were sitting on a Unix box and, from my PC
> > at home, I imported them into CVS using WinCVS. CVS changed
> > the line termination to DOS and when I ran my Unit tests,
> > they failed. I found that, if I changed the text files back
> > to Unix format, it worked fine.
> 
> Ah. There's a checkbox on admin/preferences/globals at the bottom
> in WinCVS, which will check out per UNIX eol. I don't think there's
> a direct option with CVS command line.

Cool! Thanks. I didn't see that when I was doing a checkout. It is
on the 4th tab (Globals). I'll give it a try.

PCM (Paul Michali)

Internet Systems Business Unit (ISBU)
Cisco Systems, Inc.
250 Apollo Drive
Chelmsford, MA 01824

Phone : (800) 572-6771 x 75817  (978) 497-5817 [direct]
Paging: (800) 365-4578 [voice]  pcm  <at>  epage.cisco.com [email page]

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

(Continue reading)

Bill de hÓra | 3 Jun 2002 18:44
Favicon

RE: Re: Source Code Control


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: pcm <at> cisco.com [mailto:pcm <at> cisco.com] 
> 
> > Ah. There's a checkbox on admin/preferences/globals at the 
> bottom in 
> > WinCVS, which will check out per UNIX eol. I don't think
> > there's a  direct option with CVS command line.
> 
> Cool! Thanks. I didn't see that when I was doing a checkout. 
> It is on the 4th tab (Globals). I'll give it a try.

Do upgrade to 1.3 though. It seems to play nicer than 1.2 if you
work the sandbox with a command line CVS client as well. Also after
you set the preference, re-checkout don't update (consequent
updates will follow the preferred line convention btw).

Bill de hÓra

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPPuc6eaWiFwg2CH4EQLdnwCffzzRJIRB6SgwvB2vAZcpPPhV/vgAnAzC
Is4bVCAXEbrvmhhcroO0ceOD
=mnob
-----END PGP SIGNATURE-----

(Continue reading)

ejfried | 2 Jun 2002 15:43
Picon

Re: Re: Source Code Control


Use a cygwin build of CVS and of Ruby, and use "binary mounts." Under
these conditions, all the files will use UNIX line termination on
Windows, and everything will just work transparently. Presumably you
don't really mean "DOS".

I think Paul Michali wrote:
> > > From: Paul Michali [mailto:pcm <at> cisco.com]
> > >
> > > Anyone know how to
> > > deal with files when running Ruby from Unix and DOS?)
> > 

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  ejfried <at> ca.sandia.gov
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

To Post a message, send it to:   extremeprogramming <at> eGroups.com

To Unsubscribe, send a blank message to: extremeprogramming-unsubscribe <at> eGroups.com

ad-free courtesy of objectmentor.com 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Paul Michali | 3 Jun 2002 13:01
Picon
Favicon
Gravatar

Re: Re: Source Code Control

ejfried <at> ca.sandia.gov wrote:
> 
> Use a cygwin build of CVS and of Ruby, and use "binary mounts." 

Do you mean take the source of Ruby and rebuild it under cygwin?
It looks like cygwin has some form of console and GCC compiler.

I'm using WinCVS, do I need to try to find its source and rebuild it?

What do you mean by "binary mounts"?

> Under
> these conditions, all the files will use UNIX line termination on
> Windows, and everything will just work transparently. Presumably you
> don't really mean "DOS".

Yes, I mean PC/Windows line terminations (Emacs, just says DOS on the
status bar, so I blindly typed that in).

PCM (Paul Michali)

Internet Systems Business Unit (ISBU)
Cisco Systems, Inc.
250 Apollo Drive
Chelmsford, MA 01824

Phone : (800) 572-6771 x 75817  (978) 497-5817 [direct]
Paging: (800) 365-4578 [voice]  pcm <at> epage.cisco.com [email page]

To Post a message, send it to:   extremeprogramming <at> eGroups.com
(Continue reading)

ejfried | 3 Jun 2002 16:21
Picon

Re: Re: Source Code Control

I think Paul Michali wrote:
> 
> Do you mean take the source of Ruby and rebuild it under cygwin?
> It looks like cygwin has some form of console and GCC compiler.

Yes, "./configure; make" works flawlessly.

> 
> I'm using WinCVS, do I need to try to find its source and rebuild it?

No, there's a version of CVS you can install as a part of cygwin; I
meant to simply use that instead of WinCVS. I'm sure there's an option
in WinCVS to use UNIX line endings, but if you're working in a mixed
UNIX/Win32 environment, it's way easier to use one set of
cross-platform tools, and cygwin lets you do that -- i.e., standardize
on the UNIX command-line CVS client.

> 
> What do you mean by "binary mounts"?
> 

When you install cygwin, you have to option of using "text mounts" for
your Win32 file systems (which means Cygwin will try to do CRLF <-> CR
mapping for you) or "binary mounts" (cygwin will pass files through
unchanged.) Using binary mounts leads to fewer suprises, although you
could make this work either way.

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
(Continue reading)


Gmane