On Wed, Nov 08, 2006 at 02:36:40PM -0800, Greg Fitzgerald wrote:
> Is there a way to set up a repository so that when I do this:
> 
>   darcs push myUnstableRepo
>   darcs pull myStableRepo
> 
> from then on all pushes go to myUnstableRepo and all pulls come from
> myStableRepo?

Not within Darcs AFAIK, but it's easy to work around (untested):

~/bin/darcs:
  #!/bin/sh
  if [ "`pwd`" = ~/myrepo ]; then
      if [ "$1" = push -a $# -eq 1 ]; then
          /usr/bin/darcs push myUnstableRepo
      elif [ "$1" = pull -a $# -eq 1 ]; then
          /usr/bin/darcs pull myStableRepo
      else
          /usr/bin/darcs "$@"
      fi
  else
      /usr/bin/darcs "$@"
  fi

-- Jamie Webb

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to