mr: Lazy processing of repositories
Svend Sorensen
svend at ciffer.net
Thu Nov 3 19:12:00 CET 2011
On Thu, Nov 03, 2011 at 01:56:53PM -0400, Joey Hess wrote:
>
> Good idea! In mr git, you can now use skip = lazy to get this behavior.
Thanks for implementing this feature!
> The lazy shell function is built into mr, but this shows how it works:
>
> lazy() {
> if [ "$MR_ACTION" = checkout ] || [ -d "$MR_REPO" ]; then
> return 1
> else
> return 0
> fi
> }
I can't get this to work. (Maybe I'm using it incorrectly.)
How do I force mr to checkout a lazy repo? 'mr checkout' seems to ignore any
arguments, so 'mr checkout repo' skips repos that have 'skip = lazy'. If I
manually create the repo directory, mr thinks the repo is already checked out.
Svend
More information about the vcs-home
mailing list