RichiH/vcsh — Issue #22: mr update broken
Author: brianmay
Created: 2012-02-03 00:57:54+00:00
State: open

Or maybe this is a documentation issue?

From documentation, section 4.2:

brian@aquitard:~$ vcsh clone git://github.com/RichiH/vcsh_mr_template.git
vcsh: info: attempting to create '/home/brian/.config/vcsh/repo.d'
Initialized empty Git repository in /home/brian/.config/vcsh/repo.d/vcsh_mr_template.git/
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19 (delta 2), reused 19 (delta 2)
Unpacking objects: 100% (19/19), done.
From git://github.com/RichiH/vcsh_mr_template
* [new branch] master -> origin/master
brian@aquitard:~$ mr update
cat: /usr/share/mr/vcsh: No such file or directory
mr: include command exited nonzero (256)
mr checkout: /home/brian/.config/vcsh/repo.d/mr.git
Initialized empty Git repository in /home/brian/.config/vcsh/repo.d/mr.git/
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19 (delta 2), reused 19 (delta 2)
Unpacking objects: 100% (19/19), done.
From git://github.com/RichiH/vcsh_mr_template
* [new branch] master -> origin/master
vcsh: error: '.config/mr/available.d/mr.vcsh' exists.
vcsh: error: '.config/mr/available.d/zsh.vcsh' exists.
vcsh: error: '.config/mr/config.d/mr.vcsh' exists.
vcsh: error: '.mrconfig' exists.
vcsh: fatal: will stop after fetching and not try to merge!
Once this situation has been resolved, run 'vcsh run mr git pull' to finish cloning.

mr checkout: command failed

mr update: finished (1 failed)

In section 4.1.2 of the documentation it says to add "mr.vcsh" to the command line:

brian@aquitard:~$ rm -rf /home/brian/.config/vcsh /home/brian/.config/mr/ ~/.mrconfig
brian@aquitard:~$ vcsh clone git://github.com/RichiH/vcsh_mr_template.git mr.vcsh
vcsh: info: attempting to create '/home/brian/.config/vcsh/repo.d'
Initialized empty Git repository in /home/brian/.config/vcsh/repo.d/mr.vcsh.git/
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19 (delta 2), reused 19 (delta 2)
Unpacking objects: 100% (19/19), done.
From git://github.com/RichiH/vcsh_mr_template
* [new branch] master -> origin/master
brian@aquitard:~$ mr update
cat: /usr/share/mr/vcsh: No such file or directory
mr: include command exited nonzero (256)
mr checkout: /home/brian/.config/vcsh/repo.d/mr.git
Initialized empty Git repository in /home/brian/.config/vcsh/repo.d/mr.git/
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19 (delta 2), reused 19 (delta 2)
Unpacking objects: 100% (19/19), done.
From git://github.com/RichiH/vcsh_mr_template
* [new branch] master -> origin/master
vcsh: error: '.config/mr/available.d/mr.vcsh' exists.
vcsh: error: '.config/mr/available.d/zsh.vcsh' exists.
vcsh: error: '.config/mr/config.d/mr.vcsh' exists.
vcsh: error: '.mrconfig' exists.
vcsh: fatal: will stop after fetching and not try to merge!
Once this situation has been resolved, run 'vcsh run mr git pull' to finish cloning.

mr checkout: command failed

mr update: finished (1 failed)

still no joy, obviously mr is looking for the repository in /home/brian/.config/vcsh/repo.d/mr.git, so lets try:

brian@aquitard:~$ rm -rf /home/brian/.config/vcsh /home/brian/.config/mr/ ~/.mrconfig
brian@aquitard:~$ vcsh clone git://github.com/RichiH/vcsh_mr_template.git mr
vcsh: info: attempting to create '/home/brian/.config/vcsh/repo.d'
Initialized empty Git repository in /home/brian/.config/vcsh/repo.d/mr.git/
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 19 (delta 2), reused 19 (delta 2)
Unpacking objects: 100% (19/19), done.
From git://github.com/RichiH/vcsh_mr_template
* [new branch] master -> origin/master
brian@aquitard:~$ mr update
cat: /usr/share/mr/vcsh: No such file or directory
mr: include command exited nonzero (256)
mr update: unknown repository type and no defined update command for /home/brian/.config/vcsh/repo.d/mr.git

Which isn't really surprising.

However, I am a bit confused how to make mr update to work as described in the documentation.