bug-gnu-arch
[Top][All Lists]
Advanced

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

[Bug-gnu-arch] [bug #5690] Add a precommit hook


From: nobody
Subject: [Bug-gnu-arch] [bug #5690] Add a precommit hook
Date: Thu, 02 Oct 2003 06:55:31 -0400
User-agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux ppc; U; ) Gecko/20020622 Debian/1.2.5-0.woody.1

=================== BUG #5690: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5690&group_id=4899

Submitted by: mega-nerd               Project: GNU arch -- a revision control 
system
Submitted on: Thu 10/02/03 at 10:55
Category:  tla                        Severity:  5 - Major                  
Bug Group:  small feature idea        Resolution:  None                     
Status:  Open                         Release:  tla-1.1pre5                 
Fixed Release:                        Merge Request?:  None                 
Your Archive Name:                    Your Archive Location:                
Assigned to:  None                    

Summary:  Add a precommit hook

Original Submission:  There is currently a hook in the commit function which 
runs

at the end of the commit process. It would also be useful 

to have a hook run at the start of the commit process and 

be able to abort the commit process by returning a non-zero

error code from the hook script.



An example of what can be done with this is to do a make in 

the the hook script and have the script return make's error

code. This means that a compile will be done during the 

commit hook and if the code doesn't build it won't commit

and broken code doesn't get into the archive.



Obviously if someone wants to bypass this process they can.

This is meant to prevent accidental commits of broken code.



I have included a diff which seems to work for me, but I'm

not totally sure that its correct. I have also mentioned 

the previous version of this patch on the mailing list.







No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Thu 10/02/03 at 10:55  Name: tla-1.1pre5-precommit.diff  Size: 1KB   By: 
mega-nerd
A patch that seems to work.
http://savannah.gnu.org/bugs/download.php?group_id=4899&bug_id=5690&bug_file_id=697


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5690&group_id=4899

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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