Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68716
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'output': 0.05; 'subject:Question': 0.07; 'bug.': 0.09; 'raises': 0.09; 'subject:Source': 0.09; 'wrote': 0.14; 'changes': 0.15; 'command.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'refactoring': 0.16; 'roy': 0.16; 'simpson': 0.16; 'ignore': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'bit': 0.19; 'file,': 0.19; 'command': 0.22; 'header:User- Agent:1': 0.23; 'script.': 0.24; 'text.': 0.24; 'cheers,': 0.24; 'first,': 0.26; 'nearly': 0.26; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'function': 0.29; "doesn't": 0.30; 'lines': 0.31; 'trace': 0.31; 'trivial': 0.31; 'file': 0.32; 'probably': 0.32; 'checked': 0.32; 'run': 0.32; 'really': 0.36; 'in.': 0.36; 'useful': 0.36; 'charset:us-ascii': 0.36; 'too': 0.37; 'two': 0.37; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'number,': 0.60; 'wonderful': 0.60; 'most': 0.60; 'effective': 0.61; 'content- disposition:inline': 0.62; 'name': 0.63; 'real': 0.63; 'smith': 0.68; 'useful.': 0.68; 'article': 0.77; 'received:192.168.15': 0.84; 'subject:Control': 0.84; 'touched': 0.84; 'tricky': 0.84; 'discovering': 0.91; 'examine': 0.93 |
| Date | Sat, 22 Mar 2014 08:32:36 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: Question about Source Control |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| Content-Transfer-Encoding | quoted-printable |
| In-Reply-To | <roy-B841BA.08233121032014@news.panix.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <roy-B841BA.08233121032014@news.panix.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8370.1395437563.18130.python-list@python.org> (permalink) |
| Lines | 49 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1395437563 news.xs4all.nl 2949 [2001:888:2000:d::a6]:36970 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68716 |
Show key headers only | View raw
On 21Mar2014 08:23, Roy Smith <roy@panix.com> wrote:
> In article <mailman.8348.1395381664.18130.python-list@python.org>,
> Cameron Simpson <cs@zip.com.au> wrote:
>
> > hg blame bin/set-x
> >
> > and the output goes:
> >
> > [hg/css]fleet*> hg blame bin/set-x
> > 2186: #!/bin/sh
> > 11359: #
> > 11359: # Trace execution of a command.
>
> There's two things hg blame doesn't do which would be useful.
>
> First, the trivial one. I don't want lines annotated by change number,
> I want them annotated by the name of the person who checked it in.
From "hg help blame":
This command is useful for discovering when a change was made and by whom.
Look at "hg blame -u" or "hg blame -uv".
> The hard thing is I don't really want to know which change most recently
> touched the line of text. I want to know who really wrote it. It would
> be wonderful if hg were smart enough to be able to back-track through
> the change history and ignore trivial changes like whitespace,
> refactoring a function out of one file into another, etc. That's the
> real meat and potatoes of "blame". I want to know who I need to hit
> over the head with a clue-by-four once I fix a bug.
That would probably be not too hard to script. The tricky bit might be
identifying a particular line as the same over certain diffs.
Basicly, run "hg log" for the file, and examine each of the diffs
WRT to your target line.
Refactoring raises the bar somewhat.
Cheers,
--
Cameron Simpson <cs@zip.com.au>
I am learning that criticism is not nearly as effective as sabotage.
- Shanti Goldstein
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Question about Source Control Cameron Simpson <cs@zip.com.au> - 2014-03-21 17:00 +1100
Re: Question about Source Control Roy Smith <roy@panix.com> - 2014-03-21 08:23 -0400
Re: Question about Source Control Chris Angelico <rosuav@gmail.com> - 2014-03-22 04:23 +1100
Re: Question about Source Control Tim Chase <python.list@tim.thechases.com> - 2014-03-21 12:54 -0500
Re: Question about Source Control Tim Chase <python.list@tim.thechases.com> - 2014-03-21 12:59 -0500
Re: Question about Source Control Cameron Simpson <cs@zip.com.au> - 2014-03-22 08:32 +1100
Re: Question about Source Control Chris Angelico <rosuav@gmail.com> - 2014-03-22 09:17 +1100
csiph-web