You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Files <fi...@poetryunlimited.com> on 2003/09/25 03:23:31 UTC
Ok. I just had this brainstorm....
Ok.
Do we have some way of entering a template for the log message?
So that when we get in there, instead of a line that says "------ everything below this
line will be ignored---------", we can have those files already listed as part of the log
and we can add our comments to them?
Or a switch perhaps that would make the files part of the default message?
Or even possibly a switch that would allow us to enter one log message at a time,
although that would probably be very inefficient.
I am wondering because it seems to me that when we are making changes, we spend
a lot of time entering the log message or we forget to include something.
How do you all do it? Do you maintain a list of changes externally and then just read
that file into the log editor?
Is there a hook to hook into to *generate* this content on the fly before it gets into the
log editor?
What's the scoop? :) Any information would be appreciated.
Thanks.
Shamim Islam
BA BS
P.S. I am attempting a stock build of the Mandrake RPMs. So far so good w/ very few
minor inconveniences, but I will collect them all before submitting them along with a
full log of changes from where I took over, that fits what is in HACKING.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Mac OS X: Bundles
Posted by Chris Parker <su...@playswithfire.com>.
Just to follow up on this some more:
On Wed, Oct 01, 2003 at 01:04:49PM -0500, B. W. Fitzpatrick wrote:
>
> Robert <ro...@gmx.de> writes:
> > Hello.
> > Having Target Milestone Post 1-0 is too far off.
> >
> > I have some spare time, so I would offer myself to write the patch.
>
> Best of luck. But I want to give you fair warning: It's a HELLUVA lot
> more work that you might think it is at first glance. libsvn_wc is the
> messiest codebase in svn, it consumes its own API, and you're going to
> have to write a bunch of testcases for your new code. On top of that,
> it still might not get approved for 1.0 (I'm not saying that *I* won't
> reject it, but just be aware that development here is consensus-based).
As fitz says here - this isn't just "a patch" in order for this to Do
The Right Thing - opaque collections are going to be tricky to get
right even without libsvn_wc getting in the way.
I keep driving by this now that I've got a few free cycles, and I keep
rolling up the windows and locking the doors every time. The running
dialog with myself goes something like this:
"OK, I'll need to start here, and change this to move this directory
over here, but now I'll need to tell libsvn_wc that what it's looking
for is over *there* instead of over *here* and so I'll have to change
*this thing here* and that means changing all the call sites over
there and...
Hey wait. I'll do something easier. Like a root canal on myself with a
cordless screwdriver and a pipe cleaner."
I really want this for my own nefarious purposes, but figuring out
libsvn_wc without breaking things I don't have time for right now.
*sigh*
.chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Mac OS X: Bundles
Posted by "B. W. Fitzpatrick" <fi...@red-bean.com>.
Robert <ro...@gmx.de> writes:
> Hello.
> Having Target Milestone Post 1-0 is too far off.
>
> I have some spare time, so I would offer myself to write the patch.
Best of luck. But I want to give you fair warning: It's a HELLUVA lot
more work that you might think it is at first glance. libsvn_wc is the
messiest codebase in svn, it consumes its own API, and you're going to
have to write a bunch of testcases for your new code. On top of that,
it still might not get approved for 1.0 (I'm not saying that *I* won't
reject it, but just be aware that development here is consensus-based).
-Fitz
--
Brian W. Fitzpatrick <fi...@red-bean.com> http://www.red-bean.com/fitz/
> Am Mittwoch, 01.10.03 um 17:11 Uhr schrieb B. W. Fitzpatrick:
> >
> > I wouldn't start writing just yet. See
> >
> > http://subversion.tigris.org/issues/show_bug.cgi?id=707
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Mac OS X: Bundles
Posted by Robert <ro...@gmx.de>.
Hello.
Having Target Milestone Post 1-0 is too far off.
I have some spare time, so I would offer myself to write the patch.
Greetings,
Robert Welz
Softwaredeveloper
Am Mittwoch, 01.10.03 um 17:11 Uhr schrieb B. W. Fitzpatrick:
>
> I wouldn't start writing just yet. See
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=707
>
> -Fitz
>
> --
> Brian W. Fitzpatrick <fi...@red-bean.com>
> http://www.red-bean.com/fitz/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Mac OS X: Bundles
Posted by "B. W. Fitzpatrick" <fi...@red-bean.com>.
Robert <ro...@gmx.de> writes:
> Hello.
> Using svn on a directory which contains an application in one of its
> subdirectories can cause headaches:
> If the application is bundled, svn recurses inside the bundle and
> leaves its footprints in everey subdirectory inside the bundle.
>
> A bundle is technically simply a directory, but its a special directory
> where only files are stored which belongs to the application (this way
> laguage localizations, sounds, images and other resources gets bundled
> with the application).
>
> Solution: A bundle has either the .app extension or (in some rare cases
> where the programmer did stuck with OS 9 standards) the Finder "Bundle
> Bit" set. I have at least one major app with bundle bit instead the app
> extension: Adobe Acrobat Reader 5.0, but I assume that there are other
> "old Carbon Apps" which use the bundle bit instead of the .app
> extension.
>
> So checking for .app , if not there check for the bundle bit should
> should prevent svn from recursing and cluttering up the bundles.
>
> Instead of checking for the Finder "Bundle Bit" which would make use of
> Macintosh FileManager API, one could use the
> /Developer/Tools/GetFileInfo tool instead but I guess for this tool the
> Developer Tools CD has to be installed.
>
> Shall I write the patch?
I wouldn't start writing just yet. See
http://subversion.tigris.org/issues/show_bug.cgi?id=707
-Fitz
--
Brian W. Fitzpatrick <fi...@red-bean.com> http://www.red-bean.com/fitz/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Mac OS X: Bundles
Posted by Robert <ro...@gmx.de>.
Hello.
Using svn on a directory which contains an application in one of its
subdirectories can cause headaches:
If the application is bundled, svn recurses inside the bundle and
leaves its footprints in everey subdirectory inside the bundle.
A bundle is technically simply a directory, but its a special directory
where only files are stored which belongs to the application (this way
laguage localizations, sounds, images and other resources gets bundled
with the application).
Solution: A bundle has either the .app extension or (in some rare cases
where the programmer did stuck with OS 9 standards) the Finder "Bundle
Bit" set. I have at least one major app with bundle bit instead the app
extension: Adobe Acrobat Reader 5.0, but I assume that there are other
"old Carbon Apps" which use the bundle bit instead of the .app
extension.
So checking for .app , if not there check for the bundle bit should
should prevent svn from recursing and cluttering up the bundles.
Instead of checking for the Finder "Bundle Bit" which would make use of
Macintosh FileManager API, one could use the
/Developer/Tools/GetFileInfo tool instead but I guess for this tool the
Developer Tools CD has to be installed.
Shall I write the patch?
Greetings,
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by Julian Foad <ju...@btopenworld.com>.
Files wrote:
> Ok.
>
> Do we have some way of entering a template for the log message?
I use this script to write a list of the file names in the format described in HACKING:
~/src/subversion> cat log-msg.sh
#!/bin/bash
# Write a log message template, listing the files that would be committed.
svn status "$@" | grep "^[^?]" | sed 's/^M...../*/' | sort
So I do, for example,
./log-msg.sh doc/boo/book/ > book.patch
svn diff doc/book/book/ >> book.patch
vim book.patch
# Write the log message by looking at the diff, and then delete the diff part.
# While doing this, realise that the patch isn't quite right. Go back and fix it.
cat book.patch
# Final check. Is it all correct? Did I remember to delete the diff part?
svn commit -F book.patch doc/book/book/
- Julian
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by Ben Collins-Sussman <su...@collab.net>.
pll@lanminds.com writes:
> >Many of us write the log message as we code. For example, when I
> >change a function, I hit "C-c, l" in emacs, and it instantly switches
> >me to a logmsg buffer in-progress, and inserts a line like:
> >
> > * filename.c (function):
> >
> >So I can instantly document what I just changed. By the time I'm
> >ready to commit, I just run 'svn commit -F logmsg'.
>
> This would be *really* nice to have. Alas, I use XEmacs, and last I
> checked, the svn modes don't work with it, and I'm rather
> elisp-impaired, or I'd attempt to fix it :(
It's a custom elisp function that karl wrote, and he/I/cmpilato use it
all the time. It's sitting in the svn tree in tools/dev/svn-dev.el --
look for the function called svn-log-message.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by pl...@lanminds.com.
In a message dated: 24 Sep 2003 22:36:19 CDT
Ben Collins-Sussman said:
>Many of us write the log message as we code. For example, when I
>change a function, I hit "C-c, l" in emacs, and it instantly switches
>me to a logmsg buffer in-progress, and inserts a line like:
>
> * filename.c (function):
>
>So I can instantly document what I just changed. By the time I'm
>ready to commit, I just run 'svn commit -F logmsg'.
This would be *really* nice to have. Alas, I use XEmacs, and last I
checked, the svn modes don't work with it, and I'm rather
elisp-impaired, or I'd attempt to fix it :(
--
Seeya,
Paul
GPG Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE
If you're not having fun, you're not doing it right!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by kf...@collab.net.
Files <fi...@poetryunlimited.com> writes:
> If I can delete the line, that's a start I guess. Would really still be
> nice to be able to do a template to translate from the AMD to your
> choice of how you want to comment it. No?
No :-).
> Some of us haven't quite heard of emacs and are still running vi. :-)
Vi is just as capable of such text transformations as Emacs.
It's better for people to learn their text editors, than for
Subversion to start becoming a text editor.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by Files <fi...@poetryunlimited.com>.
On Wed, 2003-09-24 at 23:36, Ben Collins-Sussman wrote:
> "Files" <fi...@poetryunlimited.com> writes:
>
> > Ok.
> >
> > Do we have some way of entering a template for the log message?
>
> No.
> The one 'template' that comes up already has the modified files
> listed. Just remove the "------ XXXX -----" line, and you can make
> whatever comments you want. Or leave the divider in, and write your
> own message based on the file list.
>
>
OH - so like it won't get mad if that line isn't present? I never take
it out because nothing in the documentation says that the line can be
removed. I was worried I'd break something.
If I can delete the line, that's a start I guess. Would really still be
nice to be able to do a template to translate from the AMD to your
choice of how you want to comment it. No?
Some of us haven't quite heard of emacs and are still running vi. :-)
--
Shamim Islam
BA BS
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Ok. I just had this brainstorm....
Posted by Ben Collins-Sussman <su...@collab.net>.
"Files" <fi...@poetryunlimited.com> writes:
> Ok.
>
> Do we have some way of entering a template for the log message?
No.
>
> So that when we get in there, instead of a line that says "------
> everything below this line will be ignored---------", we can have
> those files already listed as part of the log and we can add our
> comments to them?
The one 'template' that comes up already has the modified files
listed. Just remove the "------ XXXX -----" line, and you can make
whatever comments you want. Or leave the divider in, and write your
own message based on the file list.
> Or a switch perhaps that would make the files part of the default message?
>
I don't understand... the files *are* in the default message already.
> I am wondering because it seems to me that when we are making
> changes, we spend a lot of time entering the log message or we
> forget to include something.
>
> How do you all do it? Do you maintain a list of changes externally
> and then just read that file into the log editor?
Many of us write the log message as we code. For example, when I
change a function, I hit "C-c, l" in emacs, and it instantly switches
me to a logmsg buffer in-progress, and inserts a line like:
* filename.c (function):
So I can instantly document what I just changed. By the time I'm
ready to commit, I just run 'svn commit -F logmsg'.
Other people write the log message all at once, just before they
commit. Typically they run 'svn status' and 'svn diff', read
carefully, and document every changed function. They commit with the
-F switch as well.
Or, in the simplest case, don't give any args to 'svn commit', and the
default $EDITOR will pop up a list of changed files, ready for you to
document. When the list is in front of you, I don't quite understand
how you can forget to document something...?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org