Package: mr
Version: 1.16
Severity: wishlist

I am trying to give team members a way to add local aliases etc.
without having to modify .mrconfig (which is checked into the repo):

  include = test ! -f .mrconfig.local || cat .mrconfig.local

This works (and always returns true, due to the "if-not-else"
construct).

The problem is that if repo A chain-loads repo B:

  [B]
  chain = true

If I also add the same include to the .mrconfig file of B, then it
all works fine if I am acting within B. However, if B is being
processed chained from A, then A's .mrconfig.local is loaded *again*
when B is processed.

The reason is that I am looking in the current working directory,
and when A chains to B, the working directory stays the same (rather
than being changed to B).

There is also no variable I could use to lookup .mrconfig.local.
$MR_CONFIG is defined, but it points to A's .mrconfig even in the
context of (while processing) B.

Therefore, it would be best if CWD was changed when chaining, or if
a variable was introduced that can be used by repos and chained
repos alike to identify the root of the applicable .mrconfig file.

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

Kernel: Linux 3.13-1-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

Versions of packages mr depends on:
ii  myrepos  1.20130826

mr recommends no packages.

mr suggests no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <[email protected]>      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