Package: mr
Version: 1.14
Severity: wishlist

I keep my mrconfig snippets in ~/.config/mr/config.d, which is
machine-dependent.

I also use vcsh, so each of the snippets in said directory is of the
format

  [$HOME/.config/vcsh/repo.d/…]
  …

This is a lot of redundancy that will bite me should I ever move.

I have tried to consolidate mr and vcsh into one repository, in the
hope to be able to make use of relative references (chain to
$HOME/.config/vcsh/.mrconfig, include config.d/*), but include
commands are executed in $PWD, not $MR_REPO. Also, $MR_REPO is not
set in the context of includes in chained .mrconfig files.

I would appreciate any of the following solutions:

  1. a new sections [ENV] or [VARS], in which I can define variables
     available subsequently. Unfortunately, a line like

       lib = export FOO=bar

     is not guaranteed to execute before the other stanzas are
     loaded.

     Alternatively, any unknown parameters in [DEFAULT] could be
     exported as variables.

  2. export MR_REPO into the context in which include commands in
     chained .mrconfig files are executed, e.g.

       [path/to/repo]
       chain = true

       …

       [DEFAULT]
       include = $MR_REPO/bar

      would include 'path/to/repo/bar'. At the moment, $MR_REPO is
      empty when path/to/repo/.mrconfig is run.

   3. chdir() to the directory to which mr is chaining, before
      sourcing the .mrconfig file.

Thanks,

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

mr depends on no packages.

Versions of packages mr recommends:
ii  libhtml-parser-perl  3.69-2
ii  libwww-perl          6.04-1
ii  perl                 5.14.2-21

Versions of packages mr suggests:
ii  bzr             2.6.0~bzr6526-1
ii  curl            7.30.0-1
ii  cvs             2:1.12.13+real-9
pn  darcs           <none>
pn  fossil          <none>
ii  git [git-core]  1:1.8.2-1
ii  liburi-perl     1.60-1
ii  mercurial       2.5.2-1
ii  subversion      1.7.9-1+nmu1
pn  vcsh            <none>

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to