Re: Corrupt git-annex repository

2011-10-29 Thread Richard Hartmann
On Fri, Oct 28, 2011 at 23:44, Joey Hess j...@kitenet.net wrote: git log git-annex..origin/git-annex fails, so both are *not* there. (git branch may show them, which means nothing when your repository is corrupted) Ah. Sorry, then. What I meant to say is that the only place that git-annex

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

2011-10-29 Thread Richard Hartmann
On Sat, Oct 29, 2011 at 03:11, Adam Spiers vcs-h...@adamspiers.org wrote: By you are you referring to me or Joey?  Yes, my intention was that ~/.git-repos contains all git repos (or at least most). Yes, sorry for the confusion. If you mean, every repo *contains* its own .mrconfig, then I

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 by

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:

Re: various suggestions for mr

2011-10-29 Thread Joey Hess
Adam Spiers wrote: I already did this; in fact I *had* to, in order to support GNU stow, which requires the stow package namespace to be the list of directories under a single stow directory. If you look for $STOW_PKG_PATH in the code I originally posted, you'll see:

Re: Corrupt git-annex repository

2011-10-29 Thread Joey Hess
Richard Hartmann wrote: Is there any technical reason that would make git annex init test --uuid=foo impossible? That way, I could re-use the UUID when I _know_ it's OK to reuse them. There is no technical reason that could not be done, but copying the .git/config has the same effect

Re: Corrupt git-annex repository

2011-10-29 Thread Richard Hartmann
On Sat, Oct 29, 2011 at 18:58, Joey Hess j...@kitenet.net wrote: There is no technical reason that could not be done, but copying the .git/config has the same effect today. OK, so git annex init, edit the UUID manually and then start to add data? That would still leave me with Yet One More

Re: Corrupt git-annex repository

2011-10-29 Thread Joey Hess
Richard Hartmann wrote: On Sat, Oct 29, 2011 at 18:58, Joey Hess j...@kitenet.net wrote: There is no technical reason that could not be done, but copying the .git/config has the same effect today. OK, so git annex init, edit the UUID manually and then start to add data? That would still