Two Mercurial repos. on remote machine -- one is cloneable via ssh; the other, not - ssh

On my LAN, on a remote machine people there are two Mercurial repositories in my home directory: Documents and stage. Just to be quite clear: these two subdirectories are each a Mercurial repository and they are peers of one another on the same machine.
When on another machine I run hg clone ssh://people:3887/Documents, the repository is cloned as expected. When I run hg clone ssh://people:3887/stage the response is:
remote: abort: error: node name or service name not known
abort: no suitable response from remote hg!
What could be different about these two repositories that means that one is cloneable and the other not? On the local machine itself, as the same user as which I am sshing, I can run all the usual hg commands without problems in either repository. I can't see anything obvious in the permissions on the two repositories, including on the files in .hg/ and in any case, I can do all Mercurial operations locally as the same user.

Problem solved by renaming stage to Stage on the host machine. The repository can then be cloned as normal.

Related

Clone from BitBucket using SSH fails with "Could not read from remote repository"

Created a new, empty repository via bitbucket.org, and configured an access key for read only access, as described here.
However, when trying to clone the repository, this is what I see:
~/Documents $ git clone git#bitbucket.org:myname/myrepo.git
...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I just created the repository, so it does exist. I'm also fairly certain my SSH setup is correct.
What am I doing wrong here?
I assume this was caused by the fact that the repository did not contain any files yet.
After committing a readme file via bitbucket.org, the clone command succeeded.

Can I share beyondCompare setting between machines?

On my linux machine beyondCompare's settings are stored in ~/.config/bcompare. I would like to share these between my different machines. Can I:
Create a git repo in ~/repos/bcompareSettings
Move the contents of ~/.config/bcompare to ~/repos/bcompareSettings
Symlink ~/.config/bcompare to ~/repos/bcompareSettings
Push/Pull the git repo periodically and share it among different machines?

convert maven local repository to remote repository

I have a repository directory under .m2 that I want to use as a remote repository (-Dmaven.repo.remote=http://remotehostname/repo) to other hosts. I tried just to expose the directory .m2/repository/ under Apache as http://remotehostname/repo, the directory is fully visible via HTTP, but Maven doesn't seem to be reading from the exposed repo. For various reasons, I do not want to add this new remote repo to settings.xml; limit it to -Dmaven.repo.remote
What do I need to do to convert a local repo under .m2 as a remote repo?
Further to #Perception's answer, you can look at Nexus Command Line tool, which can help convert your local repo to nexus repo
I haven't heard of any maven repository manager that can simply mirror your .m2 folder (which is just a local repository). You need to install and configure repository management software ... there are many free, open source ones, I recommend Artifactory or Nexus.
Nexus does fit very closely with your requirements since it uses a file based repository, and the file layout matches with the local repo layout.

Nexus sonatype: Incomplete repository when adding a proxy repository

We've installed the Nexus Sonatype open-source software, version 1.8.0.1 .
When we log in as an administrator and try to add a remote repository (proxy repository), the repository gets added but is incomplete and missing artifacts.
When we click on "Browse Index", we only see one artifact branch "de" when there should be multiple ones.
However, if we paste the repo url in a browser (http://oss.sonatype.org/content/groups/public/), there is a lot more content and also a .index directory which, by our understanding, should download a remote index of everything available in this repository.
The only error we see in the log is the following:
Aborted walking on repository ID='liferay-repository' from path='/.index',
cause: Item not found on path "/.index" in repository "liferay-repository"!
If my understanding is right, the proxy repository downloads and caches the artifacts that it is requested. It would not attempt to download the entire contents of the remote repository that is configured.
Could you try downloading artifacts in this remote repository using the configured Nexus proxy and see if the artifacts are present in Nexus after the operation?

Bazaar offline + branches

I have a Bazaar repository on Host A with multiple branches. This is my main repository.
Until now, I have been doing checkouts on my other machines and committing directly to the main repository. However, now I am consolidating all my work to my laptop and multiple VMs. I need to be working offline regularly. In particular, I need to create/delete/merge branches all while offline.
I was thinking of continuing to have the master on Host A with a clone of the repository on the laptop with each vms doing checkouts of the clone.
Then, when I go offline, I could do bzr unbind on the clone and bzr bind when I am back online.
This failed as soon as I tried to bzr clone since bzr clone only clones a branch(!!!!)
I need some serious help. If Hg would handle this better please let me know (I need Windows support.) However, at this moment I cannot switch from Bazaar as it is too close to some important deadlines.
Thanks in advance!
bzr fundamentally works with one branch / directory (the branch are visible at the file system level), so if you need to clone each branch from your repository (not unlike svn, in a way). Hg, at basic level, works this way too (although you can put several branches in one repository using say named branches).
For DVCS, it is important to distinguish between the following:
Working tree: a versioned set of files (at a given revision)
Branch: a linear set of revisions
Repository: a set of revisions
When you clone locally a directory versioned by bzr, you are copying the repository subset which contains all the revisions in the branch you are cloning, and get the working tree. This assumes you are not asking for a branch wo a working tree nor using a shared repository.
What you want, IIUC, is to clone the full repository with all the branches. There is no 'native' way to do so in bzr I believe, but plugins to help you toward this, like multi-pull and push-repo, to sync multiple branches in one shot.
But I don't understand why that's such a big problem, or the link with working offline: you just clone the branches you want to work on your laptop.