git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GUILT PATCH 0/4] Add guards to guilt

From
JSJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Date
Jul 30, 2007, 19:20 UTC
Message-ID
<20070730192027.GB17253@filer.fsl.cs.sunysb.edu>
In-Reply-To
<873az6cmve.fsf@hubert.paunchy.net>
On Mon, Jul 30, 2007 at 01:32:53AM -0700, Eric Lesh wrote:
Show 12 quoted lines
> Josef Sipek <jsipek@fsl.cs.sunysb.edu> writes:
> 
> >
> > I know I've been bad about forcing even myself to write new regression
> > tests. Your patches modify things significantly enough, that I'd like to see
> > some regression tests cases to make sure that user's data is not eaten
> > (e.g., a bug in the guard setting code could blow away the series file =>
> > very bad).
> >
> 
> Yeah, I'll try and make one.  070-guards.sh to test guilt-guard and
> guilt-select plus pushing and popping?
Sounds good.
> There's also sed -i in a few places. For integrity purposes, are a cp
> and sed better?

I like the fact that sed -i makes the code cleaner, BUT I don't want the users to come after me if they patches disappear. Perhaps having a wrapper (a function) for sed that's nicely paranoid and handles errors as well as possible would be in order:

safe_sed [<sed options...>]
Show 6 quoted lines
> > Is this a problem with other projects' implementations of guards as well?
> > Perhaps printing a warning if a new guard is set when there are applied
> > patches would be in order?
> >
> 
> Yeah, they have this problem too,
Good :)
> but tell you so when you select, so guilt should too.
Agreed.
> Mercurial also has two options which do the popping and reapplying for
> you, which I'll try and implement also.
As in:

t=`guilt-top` guilt-pop -a guilt-push "$t"

? Beware that "$t" might not be in the new guarded series.
> Thanks a lot for the review.  Things were pretty ugly, but with your
> help it should look much better.
Nah...just a few nit-picks, that's all :)
Josef 'Jeff' Sipek.
-- 
I think there is a world market for maybe five computers.
		- Thomas Watson, chairman of IBM, 1943.
Previous: Eric Lesh
Message 20 of 20 in “Add guards to guilt”
  1. 0/4 Add guards to guiltEric Lesh, Jul 29, 2007
  2. 1/4 get_series: Remove comments from end of series linesEric Lesh, Jul 29, 2007
  3. Josef SipekJul 30, 2007
  4. Eric LeshJul 30, 2007
  5. Josef SipekJul 30, 2007
  6. Eric LeshJul 30, 2007
  7. 2/4 guilt-guard: Assign guards to patches in seriesEric Lesh, Jul 29, 2007
  8. Josef SipekJul 30, 2007
  9. Eric LeshJul 30, 2007
  10. Josef SipekJul 30, 2007
  11. 3/4 guilt-select: Select guards to apply when pushing patchesEric Lesh, Jul 29, 2007
  12. Josef SipekJul 30, 2007
  13. Eric LeshJul 30, 2007
  14. Josef SipekJul 30, 2007
  15. 4/4 Use guards information and functionsEric Lesh, Jul 29, 2007
  16. Josef SipekJul 30, 2007
  17. Eric LeshJul 30, 2007
  18. Josef SipekJul 30, 2007
  19. Eric LeshJul 30, 2007
  20. Josef SipekJul 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.