[Pkg-exppsy-maintainers] Enjoy mr setup for our git repositories

Yaroslav Halchenko debian at onerussian.com
Tue Sep 2 23:00:41 UTC 2008


Hi All,

Being spoiled by Debian, was looking for the package for announced
ITP python-griddata (looked in my mirror of Michael's repository) --
didn't find it...  then cloned sources and only then recalled that we
have repository on alioth ;-)

then I said 'damn' -- it is somewhat bad that we have each project in a
separate git... ok -- I am slowly moving to use mr + git for my home
(details at [1]), so I crafted few things:

get_mrconfig.sh

on alioth, which was ran and generated .mrconfig. Also edited
add_project.sh so it regenerates .mrconfig whenever new project is
added (and commits)

so now there are 2 ways to proceed

1. proper way:

add into your generic mr setup (you can lookup mine, structure for which
I borrowed from martin f krafft, from [2]), smth like [3]

[deb/gits/pkg-exppsy]
checkout = git clone "ssh://alioth.debian.org/git/pkg-exppsy"
chain = true

and then simply
cd ~/deb/gits # optional... at least get to ~/ but then you would fetch everything managed by mr
mr update
mr update # twice since for some reason for me it didn't chain immediately

2. custom way:
git clone ssh://alioth.debian.org/git/pkg-exppsy pkg-exppsy
cd pkg-exppsy
mr -c .mrconfig update

in either 1 or 2 you are supposed to get all of the git repositories we have on
alioth, and consecutive mr update should fetch all new changes for all of them.
Especially pleasant is 'mr -j update' ;-)

The only issue which I didn't address in the script is the fact that we
don't have 'master' branch in many of the repositories... thus it would
fail to do initial checkout and you would need to do that manually... or
may be we shouldn't checkout at all by default? (git clone -n?), or
adjust get_mrconfig so it adds proper checkout line if master branch is
not present

I hope it works for someone else than me and someone finds it useful. May be at
some moment I will also add leftover SVN repository we still have to be managed
within the same mrconfig ;-)

[1] http://lists.madduck.net/pipermail/vcs-home/2008-July/000150.html
[2] http://git.onerussian.com/?p=etc/mr.git;a=summary
[3] http://git.onerussian.com/?p=etc/mr.git;a=blob;f=.mr/roles/debian;hb=HEAD

-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-exppsy-maintainers mailing list