[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] feature request(?): file-history command.
From: |
Paul Pelzl |
Subject: |
Re: [Gnu-arch-users] feature request(?): file-history command. |
Date: |
Thu, 12 May 2005 10:41:36 -0400 |
User-agent: |
Mutt/1.4.1i |
On Thu, May 12, 2005 at 10:56:31AM +0200, Matthieu Moy wrote:
> Is it possible to get the list of revisions that modified a particular
> file with tla or baz?
>
> I'd like to have this as an option of "baz logs" and "baz revisions"
> for example:
>
> $ baz logs --modifying foo.c
> patch-1
> patch-5
> patch-42
It would be nice to see this functionality integrated with native
commands. In the meantime, a small script works pretty well for me:
----------------------------------------------------------------------------------
#!/bin/bash
# Usage: baz-file-history FILE
# List all fully-qualified revisions that touch FILE.
for lv in `baz log-versions`; do
for pl in `baz logs -f $lv`; do
if `baz cat-log $pl | grep -F -q $1`; then
echo $pl
fi
done
done
----------------------------------------------------------------------------------
Paul
Re: [Gnu-arch-users] feature request(?): file-history command., Paul LeoNerd Evans, 2005/05/12
Re: [Gnu-arch-users] feature request(?): file-history command., Mikhael Goikhman, 2005/05/13
[Gnu-arch-users] Re: feature request(?): file-history command., Stefan Monnier, 2005/05/17