Re: To use vcsh or not to use vcsh, that is the question

2017-01-15 Thread Adam Spiers
On 14 January 2017 at 17:51, Sean Whitton wrote: > On Sat, Jan 14, 2017 at 09:15:46AM -0700, Sean Whitton wrote: > > Note that an updated plug-in has already been merged into Joey's branch > > of myrepos -- this work is done! > > Some updates awaiting review here: >

Re: To use vcsh or not to use vcsh, that is the question

2017-01-14 Thread Adam Spiers
On 12 January 2017 at 04:20, Samuel Hodgkins wrote: > So, I am a fan of keeping as much under version control as possible > (Indeed, I recently reorganized my home directory to help with this) but > I've hit an interesting dilemma. > > On the one hand, vcsh is a very

Re: Quieting ``mr`` output

2015-06-28 Thread Adam Spiers
Thanks for sharing! This reminds me of this very old thread http://lists.madduck.net/pipermail/vcs-home/2012-February/000705.html which unfortunately went nowhere due to Joey having concerns about layering violations. On 28 June 2015 at 14:34, Michael Henry vcs-h...@drmikehenry.com wrote:

Re: automating git-annex relationships

2014-09-09 Thread Adam Spiers
On 9 September 2014 14:24, martin f krafft madd...@madduck.net wrote: Has anyone come up with a smart way of auto-configuring relationships between hosts? git-annex keeps track of where files are, so theoretically, it should be able to auto-configure the remotes if I tell it that two remotes

Re: Using subtree with vcsh and mr?

2014-08-08 Thread Adam Spiers
On 8 August 2014 15:34, Michael McCracken michael.mccrac...@gmail.com wrote: Hi, I've been happily using vcsh and mr for a while, to manage my emacs, zsh, git bzr configs. I've hit a problem with integrating third-party code that works with e.g. emacs or zsh. I suspect I'm missing a

Re: Using subtree with vcsh and mr?

2014-08-08 Thread Adam Spiers
On 8 August 2014 17:05, Michael McCracken michael.mccrac...@gmail.com wrote: On Fri, Aug 8, 2014 at 8:56 AM, Richard Hartmann richih.mailingl...@gmail.com wrote: On Fri, Aug 8, 2014 at 4:34 PM, Michael McCracken michael.mccrac...@gmail.com wrote: I suspect I'm missing a straightforward way

Re: How to start syncing two existing directories with git annex?

2013-11-24 Thread Adam Spiers
On 24 November 2013 20:03, Sean Hammond snh...@gmail.com wrote: Hey, I have a ~/Music directory on computer A, and a ~/Music directory on computer B. They contain mostly the same files (and with the same paths). But there might be some files on A but not B, or vice-versa. And there might be

Re: cdgit: cd relative to git workdir root

2013-09-16 Thread Adam Spiers
On Mon, Sep 16, 2013 at 09:01:14PM +0200, Thomas Koch wrote: Hi, I frequently have the need to cd back to the root of the current git workdir and created to alias for this: git alias root = rev-parse --show-toplevel shell alias cdgit = cd $(git root) Maybe somebody likes this. I

Re: --repos patch rebased against 1.07

2012-09-19 Thread Adam Spiers
, Adam Spiers vcs-h...@adamspiers.org wrote: On Wed, Dec 14, 2011 at 6:14 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: please could you cherry-pick this new version of the patch? Most people will not use it. Some people will use it when they could have simply used symlinks to point

Re: dvcs-autosync+git is broken by design

2012-03-05 Thread Adam Spiers
On Mon, Mar 5, 2012 at 12:18 AM, Chanoch (Ken) Bloom kbl...@gmail.com wrote: On Sun, 2012-03-04 at 20:08 +0100, Dieter Plaetinck wrote: On Sun, 4 Mar 2012 17:19:25 + Adam Spiers vcs-h...@adamspiers.org wrote:  I have not yet used dvcs-autosync in anger; what do you mean? It's a stretch

Re: dvcs-autosync+git is broken by design

2012-03-05 Thread Adam Spiers
On Mon, Mar 5, 2012 at 10:06 AM, Dieter Plaetinck die...@plaetinck.be wrote: On Sun, 4 Mar 2012 22:39:22 + Adam Spiers vcs-h...@adamspiers.org wrote: Sure - I don't mind changes to existing files being autosynced, but I want to manually add new files to the repo myself. Then you should

Re: insteadOf vcsh://

2012-03-04 Thread Adam Spiers
On Sun, Mar 4, 2012 at 10:59 AM, Raf Czlonka r...@linuxstuff.pl wrote: On Sat, Mar 03, 2012 at 11:49:01PM GMT, Joey Hess wrote: It also makes mr update -j20 a lot faster, as well as not opening 20 ssh connections to some single server, which sometimes causes ssh cracking detectors to ban an

Re: insteadOf vcsh://

2012-03-04 Thread Adam Spiers
On Sun, Mar 4, 2012 at 12:28 PM, Raf Czlonka r...@linuxstuff.pl wrote: On Sun, Mar 04, 2012 at 12:03:34PM GMT, Adam Spiers wrote: On Sun, Mar 4, 2012 at 10:59 AM, Raf Czlonka r...@linuxstuff.pl wrote: Using Control* [0] in your ssh_config should remedy that :^) Beware of ControlPersist - I

Re: dvcs-autosync+git is broken by design

2012-03-04 Thread Adam Spiers
On Sun, Mar 4, 2012 at 4:35 PM, Dieter Plaetinck die...@plaetinck.be wrote: this seems to work okay so far in my 'notes' repo. Thanks a lot for sharing. I have not yet used dvcs-autosync in anger; however I had already decided during testing that I never wanted it to automatically 'git add'

Re: insteadOf vcsh://

2012-03-03 Thread Adam Spiers
Hi Thomas, On Sat, Mar 3, 2012 at 6:14 AM, Thomas Koch tho...@koch.ro wrote: I just learned (via http://http://git.madduck.net ) about git's insteadOf config (man git-config , search insteadOf) and did: export COMMON=my.server.org:git/vcsh/ git config --global url.${COMMON}.insteadOf vcsh://

Re: insteadOf vcsh://

2012-03-03 Thread Adam Spiers
On Sat, Mar 3, 2012 at 5:36 PM, Yaroslav Halchenko li...@onerussian.com wrote: you might also like even more pushInsteadOf, so that you can clone using read-only git@ protocol but push over ssh What are the advantages of that approach? ___ vcs-home

Re: mr: breaking down complex subroutines

2012-02-17 Thread Adam Spiers
On Fri, Feb 17, 2012 at 4:19 PM, Tommy Stanton tommystan...@gmail.com wrote: On Fri, Feb 17, 2012 at 10:02 AM, Adam Spiers vcs-h...@adamspiers.org wrote: consequently to write patches for.  For example, loadconfig() has 221 lines, and is 8 levels of indentation deep at certain points.  Would

first stab at zsh completion

2011-12-26 Thread Adam Spiers
On Mon, Dec 26, 2011 at 7:15 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: there is a bigger cost - the risk of having a version of the completion rules which does not match the version of mr installed. This is, in practice, not a large problem, and can be dealt

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: I don't get that error message. version? 3.20111211 So, your git-annex version was, apparently, seeing --in= as in the remote named '', and doing the expensive query of git for that info.. or something

Re: inventory of files unavailable in local repository?

2011-12-23 Thread Adam Spiers
On Fri, Dec 23, 2011 at 6:08 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: On Fri, Dec 23, 2011 at 5:13 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: I don't get that error message. version? 3.20111211 So, your git-annex version was, apparently, seeing

mr: trust errors cause Use of uninitialized value warnings

2011-12-22 Thread Adam Spiers
The trust error handling code expects five parameters: my $trusterror = sub { my $msg=shift; my ($err, $file, $lineno, $url)=@_; but it is only ever invoked with one, e.g. if (! $trusted /[[:cntrl:]]/) {

inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
git annex find can provide an inventory of files whose content is available in the local repository. But is there a way of finding which files are *not* present locally? Checking for broken symlinks and filtering for /.git/annex/objects is kinda ugly.

Re: inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann richih.mailingl...@gmail.com wrote: Did you try --not? Ahah! I think this works: git annex find --not --in= Thanks! ___ vcs-home mailing list vcs-home@lists.madduck.net

Re: inventory of files unavailable in local repository?

2011-12-22 Thread Adam Spiers
On Thu, Dec 22, 2011 at 8:47 PM, Adam Spiers vcs-h...@adamspiers.org wrote: On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann richih.mailingl...@gmail.com wrote: Did you try --not? Ahah!  I think this works:    git annex find --not --in= Thanks! Unfortunately this is cripplingly slow

Re: syncing non-git trees with git-annex

2011-12-14 Thread Adam Spiers
On Wed, Dec 14, 2011 at 12:53 PM, Richard Hartmann richih.mailingl...@gmail.com wrote: I would use  find -name \*.avi -exec git annex add {} \; That's substantially less performant, because it forks a whole new tree of git / git-annex processes per file. If we're getting picky, we should also

--repos patch rebased against 1.07

2011-12-13 Thread Adam Spiers
/aspiers/kitenet-mr/commit/for-joey Bearing in mind the below: On Tue, Dec 13, 2011 at 11:58 AM, Adam Spiers vcs-h...@adamspiers.org wrote: However, even ignoring all these reasons, the requirement for a namespace of short repository identifiers (which cannot contain the '/' character

Re: Is there any interest in a patchset for mr to manage which repos are being handled?

2011-12-12 Thread Adam Spiers
Hi Richard, On Mon, Dec 12, 2011 at 12:28 AM, Richard Hartmann richih.mailingl...@gmail.com wrote: Hi all, the subject line may be a bit convoluted, but it's just what I meant. To make a short story somewhat longer, my setup looks like this: % cat .mrconfig [DEFAULT] git_gc = git gc $@

couple more patches for mr

2011-12-11 Thread Adam Spiers
Available from my 'for-joey' branch on github: https://github.com/aspiers/kitenet-mr/commits/for-joey ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home

Re: New integration branch

2011-12-05 Thread Adam Spiers
On Mon, Dec 5, 2011 at 5:38 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: 9c87f2352214175de307efedb8fd93889a26afbc        Can you give an example of when this is needed? I can't remember but I definitely saw it happen at least once :-/ My worry is that, since that really

git annex map does not spot graph loops

2011-12-04 Thread Adam Spiers
I set up two git annex repos on the local machine which point to each other and then run git annex map, it chews up a load of CPU, presumably trying to traverse the cyclic repository graph without ever noticing there's a loop: % mkdir -p annex-test/{a,b} % cd annex-test/a % git init Initialized

git annex --help doesn't show manual page

2011-12-04 Thread Adam Spiers
$ git annex --help No manual entry for git-annex Is this issue related to the fact that I installed git-annex with cabal install? ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home

Re: New integration branch

2011-12-04 Thread Adam Spiers
On Sun, Dec 4, 2011 at 9:11 PM, Joey Hess j...@kitenet.net wrote: 37617a63ec993b128f77a945a2020ec894c58eb1        loadconfig already uses %loaded to avoid reloading the same        config twice, so this extra check is not necessary, I think. Ah yes, I missed that. Still, for the cost of an

variables for plug-ins

2011-12-01 Thread Adam Spiers
Hi Dieter, On Thu, Dec 1, 2011 at 8:12 AM, Dieter Plaetinck die...@plaetinck.be wrote: On Thu, 1 Dec 2011 00:20:54 + Adam Spiers vcs-h...@adamspiers.org wrote:       [shell-config]       checkout = git clone ...       stowable = true Is this the right way to go? that mr plugins expose

Re: managing remotes collaboratively with mr

2011-11-30 Thread Adam Spiers
On Mon, May 2, 2011 at 6:36 PM, Joey Hess j...@kitenet.net wrote: micah anderson wrote: [DEFAULT] post_checkout = mr addremotes pre_update = mr addremotes Of course these run on all repos, like any mr command. So, what's really needed is: [DEFAULT] post_checkout = mr -d $MR_REPO

new mr patches on their way (not quite ready yet though)

2011-11-13 Thread Adam Spiers
Hi Joey et al., I've been doing a lot of work on my stow plug-in for mr, and in the process have not only resurrected GNU stow from the dead (last release was 2002) but also ended up doing quite a bit of work on mr itself too. I've made a number of fixes to minor bugs, a few enhancements

Re: mr: chaining to absolute paths

2011-11-06 Thread Adam Spiers
On Thu, Nov 3, 2011 at 5:46 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote:   - Do you track your mrconfig files with version control? yes How do you do that?  Are they all in one repo?  How do you get each one into the right subdirectory of ~ ? They're checked out by mr

Re: various suggestions for mr

2011-11-06 Thread Adam Spiers
On Sun, Oct 30, 2011 at 1:26 PM, Adam Spiers vcs-h...@adamspiers.org wrote: On Sat, Oct 29, 2011 at 5:52 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: However, the basename operation does not preserve the uniqueness property which $MR_REPO had, and that's why I say that we need

Re: mr: chaining to absolute paths

2011-11-03 Thread Adam Spiers
On Wed, Nov 02, 2011 at 05:02:13PM -0400, Joey Hess wrote: Adam Spiers wrote: I notice that chaining to absolute paths does not work, e.g.: Is this a feature or a bug? I would have thought it would be useful to chain to absolute paths. Probably because nobody noticed since when you're

Re: mr: chaining to absolute paths

2011-11-03 Thread Adam Spiers
On Thu, Nov 03, 2011 at 12:22:48PM -0400, Joey Hess wrote: Adam Spiers wrote: On Wed, Nov 02, 2011 at 05:02:13PM -0400, Joey Hess wrote: Adam Spiers wrote: I notice that chaining to absolute paths does not work, e.g.: Is this a feature or a bug? I would have thought it would

Re: various suggestions for mr

2011-10-30 Thread Adam Spiers
On Sat, Oct 29, 2011 at 5:52 PM, Joey Hess j...@kitenet.net wrote: Adam Spiers wrote: However, the basename operation does not preserve the uniqueness property which $MR_REPO had, and that's why I say that we need an additional namespace. So pick an operation that does? tr / _ would do

Re: how to refactor path duplication in .mrconfig section headers?

2011-10-29 Thread Adam Spiers
On Sat, Oct 29, 2011 at 2:11 PM, Richard Hartmann richih.mailingl...@gmail.com wrote: On Sat, Oct 29, 2011 at 03:11, Adam Spiers vcs-h...@adamspiers.org wrote: I like that scheme with things like apache (sites-available vs. sites-enabled) although with mr config, the same effect can

Re: various suggestions for mr

2011-10-29 Thread Adam Spiers
On Fri, Oct 28, 2011 at 6:08 PM, Joey Hess j...@kitenet.net wrote: Having two namespaces for the same thing does not strike me as necessarily a good idea. But if you wanted to do that with mr, you could maybe take advantage of a little-known thing it does with determining the absolute path:

various suggestions for mr

2011-10-28 Thread Adam Spiers
Hi all, I've been tracking my dot files and related stuff since around 1999, and was very excited to discover this mailing list two years ago. Since then I've only been able to lurk, but finally have a bit of spare time to participate. Since 2005 I have been using my own (as yet unpublished)

Re: various suggestions for mr

2011-10-28 Thread Adam Spiers
On Fri, Oct 28, 2011 at 12:40 PM, Dieter Plaetinck die...@plaetinck.be wrote: Sorry that I go slightly off-topic but you mentioned Gnu Stow, I looked it up and it seems very nice. i haven't run it yet, but (for those who don't want to read the long description) from the description it seems

Re: various suggestions for mr

2011-10-28 Thread Adam Spiers
On Fri, Oct 28, 2011 at 2:43 PM, Dieter Plaetinck die...@plaetinck.be wrote: On Fri, 28 Oct 2011 14:34:16 +0100 Adam Spiers vcs-h...@adamspiers.org wrote: On Fri, Oct 28, 2011 at 12:40 PM, Dieter Plaetinck die...@plaetinck.be wrote: Sorry that I go slightly off-topic but you mentioned Gnu

Re: various suggestions for mr

2011-10-28 Thread Adam Spiers
On Fri, Oct 28, 2011 at 3:26 PM, Dieter Plaetinck die...@plaetinck.be wrote: You wrote However I might very well want to manually place other files inside ~/local which have nothing to do with stow. Now you wrote As far as I'm aware, all my files are nicely separated into appropriate

how to refactor path duplication in .mrconfig section headers?

2011-10-28 Thread Adam Spiers
If I have multiple repository paths all similar but spread across different .mrconfig files, e.g. in ~/.mrconfig [.config/mr] checkout = ... in ~/.config/mr/config.d/CLI: [$HOME/.git-repos/zsh] ... [$HOME/.git-repos/mutt] ... and in ~/.config/mr/config.d/GUI:

Re: how to refactor path duplication in .mrconfig section headers?

2011-10-28 Thread Adam Spiers
On Fri, Oct 28, 2011 at 5:40 PM, Pieter Praet pie...@praet.org wrote: However this doesn't work - I'm guessing that variable expansion in the section headers is done in Perl, so is not influenced by the shell-code in the DEFAULT lib? So is there any other way of avoiding this duplication?

Re: how to refactor path duplication in .mrconfig section headers?

2011-10-28 Thread Adam Spiers
On Fri, Oct 28, 2011 at 8:03 PM, Richard Hartmann richih.mailingl...@gmail.com wrote: On Fri, Oct 28, 2011 at 18:45, Joey Hess j...@kitenet.net wrote: mr can look much nicer if you take advantage of locality and chaining. By locality, I mean putting a mrconfig close to the directories it