Re: something equivalent to "bk ls"?

Måns Rullgård <[email protected]> Thu, 28 Oct 2004 22:36:06 +0200
Newsgroups gmane.comp.version-control.bitkeeper.user
Message-ID <[email protected]>
Wayne Scott <[email protected]> writes:

> From: "Robert P. J. Day" <[email protected]>
>> 
>> but that's recursive, which is not what i want.  (it's also confusing
>> that the "bk helptool" for "sfiles" shows a syntax of
>> 
>>   bk [-r] sfiles ...
>
> You are right showing the -r on the sfiles manpage is completely
> bogus. We will get that fixed.
>
> Here is exactly that 'bk -r command' does.  If gets translated to:
>      cd `bk root`
>      bk sfiles | bk command -
>
> so, of cource, it doesn't make sense to call 'bk sfiles' itself with
> the 'bk -r' option. (but it does work)
>
> And you are correct that bk sfiles is recursive by default.  We are
> planning on adding a -1 option to sfiles to turn off that behavior.
> In the meanwhile it seems you can do this:
>
>    # list all gfiles in current directory (ugly I know)
>    find SCCS -name 's.*' | bk sfiles -g -

Well, just put

_ls() {
        find SCCS -name 's.*' | bk sfiles -g -
}

somewhere in bk.script.

-- 
Måns Rullgård
[email protected]

_______________________________________________
Bitkeeper-users mailing list
[email protected]
http://bitmover.com/mailman/listinfo/bitkeeper-users
To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.