[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cvs co -d <repository> prevention
From: |
Donald Sharp |
Subject: |
Re: cvs co -d <repository> prevention |
Date: |
Fri, 25 May 2001 13:20:46 -0400 |
User-agent: |
Mutt/1.2.4i |
I'd like a shot at it ;)
Thanks!
donald
On Fri, May 25, 2001 at 01:14:22PM -0400, Derek R. Price wrote:
> Donald Sharp wrote:
>
> > So I think that the correct time to check for safe_location is
> > after the directory tree has been built and chdir'ed into.
>
> That makes some sense, since otherwise the code that figures out which
> directory to
> checkout into may be run twice... it leaves a directory to cleanup in the
> failure
> case though.
>
> What about trying the parent dir too (as determined using the last_component
> function) if errno after the chdir is ENOEXIST or whatever...
>
> If both chdirs fail, then safe_location can too since we know that CVS will
> only
> build one level if directories due to a -d switch.
>
> I was about to code this, but if you have it in hand, I'll let you...
>
> Derek
>
> --
> Derek Price CVS Solutions Architect ( http://CVSHome.org
> )
> mailto:dprice@collab.net CollabNet ( http://collab.net )
> --
> I will not fake my way through life.
> I will not fake my way through life.
> I will not fake my way through life...
>
> - Bart Simpson on chalkboard, _The Simpsons_
>
>
>
- cvs co -d <repository> prevention, Donald Sharp, 2001/05/24
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/24
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/25
- Re: cvs co -d <repository> prevention, Donald Sharp, 2001/05/25
- Re: cvs co -d <repository> prevention, Donald Sharp, 2001/05/25
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/25
- Re: cvs co -d <repository> prevention,
Donald Sharp <=
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/25
- Re: cvs co -d <repository> prevention, Donald Sharp, 2001/05/25
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/29
- Re: cvs co -d <repository> prevention, Donald Sharp, 2001/05/30
- Re: cvs co -d <repository> prevention, Derek R. Price, 2001/05/30
- Re: cvs co -d <repository> prevention, Donald Sharp, 2001/05/30