bug-cvs
[Top][All Lists]
Advanced

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

Re: FW: Patch for preserving edit on files when checking out


From: Ian Abbott
Subject: Re: FW: Patch for preserving edit on files when checking out
Date: Tue, 19 Apr 2005 18:29:29 +0100
User-agent: Mozilla Thunderbird 1.0 (X11/20050118)

Hi Derek,

On 19/04/05 18:23, you wrote:
Ian Abbott wrote:
Possibly the attachments get stripped from the mail archive? I'm
trying that out for myself now!

Ian, text-only attachments should come through all right, but it may
depend on your mail client.  Thunderbird works all right for me when
sending patches.  Specifically, the following MIME types *are not*
stripped by the list's content filter: multipart/mixed,
multipart/alternative, & text/plain.

Your attachment of a cleaned-up version of Darren's message didn't
come through, though.  Maybe Thunderbird doesn't attach messages as
one of the text types?

I've looked in my sent mail folder and Thunderbird gave it a MIME type of "text/x-diff", possibly based on the file extension ".patch". I'll try renaming it to ".txt" and see if that works.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <address@hidden>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
______________________________________________ 
From:   Darren Bowles  
Sent:   22 March 2005 14:17
To:     'address@hidden'
Subject:        RE: Patch for preserving edit on files when checking out

Please find attached my CVS patch for preserving editor flag upon
multiple checkouts.

The issue is : development projects frequently have developers working
on more than 1 branch at the same time.  For instance, they may be
working on forthcoming development work, in addition to fixing live
support issues.

The current code will overwrite a users edit flag if they check out
the source code again.  There is a comment in update.c that suggests
it would be better to do this instead of by user, by work area; which
makes more sense.

When I get a spare couple of days, I will code / implement this
feature as it will be very useful.

This patch adds a new ./configure option called --enable-keep-editing
which will preserve a users edit upon checkout.

I grant permission to distribute this patch under
the terms of the GNU Public License

 << File: cvs.patch >> 

Index: config.h.in
===================================================================
RCS file: /cvs/ccvs/config.h.in,v
retrieving revision 1.163
diff -r1.163 config.h.in
739a740,743
> /* Define if you want CVS to be able to preserve your edits on multiple
>    checkouts. */
> #undef KEEP_EDITING
> 
Index: configure
===================================================================
RCS file: /cvs/ccvs/configure,v
retrieving revision 1.376
diff -r1.376 configure
963a964,965
>   --enable-keep-editing   Allow a user to keep their file edits, when checking
>                           out another copy of a repository.
37970a37973,37984
> # check whether --enable-keep-editing was given
> if test "${enable_keep_editing+set}" = set; then
>   enableval="$enable_keep_editing"
> else
>   enable_keep_editing=no
> fi;
> 
> if test no != "$enable_keep_editing"; then
> cat >>confdefs.h <<\_ACEOF
> #define KEEP_EDITING 1
> _ACEOF
> fi;
Index: configure.in
===================================================================
RCS file: /cvs/ccvs/configure.in,v
retrieving revision 1.345
diff -r1.345 configure.in
1364a1365,1390
> dnl
> dnl begin --enable-keep-editing
> dnl
> 
> dnl 
> dnl If you are using the edit facility and you checkout in more than
> dnl one directory, you will lose you edit.  This option enables you to
> dnl keep editing.
> dnl
> 
> AC_ARG_ENABLE(
>   [keep-editing],
>   AC_HELP_STRING(
>     [--enable-keep-editing],
>     [Include code for preserving edits on multiple checkouts (default)]), ,
>   [enable_keep_editing=no])
> 
> if test yes = "$enable_keep_editing"; then
>   AC_DEFINE(
>     [KEEP_EDITING], [1],
>     [Define if you want CVS to be able to preserve your edits on multiple 
> checkouts.])
> 
> dnl
> dnl end --enable-keep-editing
> dnl
> 
Index: src/update.c
===================================================================
RCS file: /cvs/ccvs/src/update.c,v
retrieving revision 1.252
diff -r1.252 update.c
1356a1357,1358
> /* If we don't want to keep edits from a previous checkout */
> #ifndef KEEP_EDITING
1358c1360
< 
---
> #endif

reply via email to

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