hg as a bugzilla?

Michael Diamond dimo414 at gmail.com
Thu Dec 15 08:07:53 UTC 2011


On Wed, Dec 14, 2011 at 11:24 PM, Ryan Brown <mp3geek at gmail.com> wrote:
>
> ...

http://www.digitalgemstones.com/projects/b/  (Doesnt allow automation
> or searching within comments)
> ...
> So we're after a way to make multiple line "comments or notes" per
> commit, and also search those comments and find thus finding the
> commit... Is possible within hg itself ? or Anyone have any ideas?
>

I'm the primary developer for b, and if b looks like a potential tool for
your use case, I'd love to work with you to make it even better.  It might
be more appropriate to continue a feature-request discussion off-list, but
I'm very interested in exploring any requests people have.

You mention needing automation and searching of comments, perhaps you could
elaborate on what exactly is missing?

In terms of automation, basically every command except edit can be run from
an automated script.  Notably, you can do `hg b comment xx "multiline
message here"` and, at least on most shells I've worked with, newlines
inserted inbetween the quotes should go through.  Is that not enough for
your usecase?

For searching, you're correct, there is no built in way to search through
the details files, however that's very intentional - I don't think I could
make a tool that does much better than grep/ack, so instead, b is built so
that it's easy to use those tools.  The .bugs/details directory contains
each issue's details, in their own individual files, named by their issue
ID, so grepping that directory will give you back all the issues matching
your search.  If necessary, a very lightweight wrapper could be implemented
to make it a little cleaner, but it should be fairly painless as is.  What
search functionality do you need that's lacking here?

I'd love to get this working for you!

Michael Diamond
dimo414 at gmail.com
www.DigitalGemstones.com <http://www.digitalgemstones.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111215/0fd48b5e/attachment-0002.html>


More information about the Mercurial mailing list