[darcs-devel] [issue1047] Wish for detecting symlinks TO repository.

Trent Buck bugs at darcs.net
Sat Aug 30 05:37:46 UTC 2008


New submission from Trent Buck <trentbuck at gmail.com>:

Package: darcs
Version: 2.0.2-2
Severity: wishlist
Tags: upstream

I have a repository for my dotfiles, stored at ~/Preferences.
Symlinks are then placed from $HOME into Preferences, e.g.

    $ ls -ld ~/.mailrc
    lrwxrwxrwx 1 twb twb 19 2008-08-03 21:24 /home/twb/.mailrc -> Preferences/.mailrc

Occasionally, because I'm not paying attention, I'll call darcs with
the path to the symlink: "darcs rec ~/.mailrc" instead of "darcs rec
.mailrc".  It would be really awesome if darcs could look at
~/.mailrc, see that it is a symlink to .mailrc in the repo, and act as
if I'd typed "darcs .mailrc".

Obviously if the out-of-repo file isn't a symlink into the current
repo, darcs should still say "Ignoring non-repository paths".

Note: implementing this feature correctly should handle chained
symlinks, e.g. "darcs rec ~/.xsession" where

    $ ls -ld ~/.xsession ~/.xinitrc
    lrwxrwxrwx 1 twb twb  9 2008-08-03 21:24 /home/twb/.xinitrc -> .xsession
    lrwxrwxrwx 1 twb twb 21 2008-08-03 21:24 /home/twb/.xsession -> Preferences/.xsession

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages darcs depends on:
ii  libc6                  2.7-13            GNU C Library: Shared libraries
ii  libcurl3               7.18.2-5          Multi-protocol file transfer libra
ii  libgmp3c2              2:4.2.2+dfsg-3    Multiprecision arithmetic library
ii  libncurses5            5.6+20080804-1    shared libraries for terminal hand
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages darcs recommends:
ii  msmtp-mta [mail-transport-age 1.4.15-1   light SMTP client with support for

Versions of packages darcs suggests:
pn  darcs-server                  <none>     (no description available)

-- no debconf information

----------
messages: 5804
nosy: dagit, kowey, submit, twb
status: unread
title: Wish for detecting symlinks TO repository.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1047>
__________________________________


More information about the darcs-devel mailing list