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





_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to