cloning into remote repositories in mercurial - version-control

Steps i did :-
1.Installed mercurial in both server (virtually both are win-7) and client.
2.Created a repository with hg init, then added one file and commit ....
3. Then hg serve in server.
4.In client if i make hg clone http://{192.168.3.6:port}/repo
Note:- that '{' is not there in real case i given. Post is not allowing ip's so i did that
5.Error in server is
Exception happened during processing of request from ('', 49750)
Traceback (most recent call last):
File "SocketServer.pyc", line 582, in process_request_thread
File "SocketServer.pyc", line 323, in finish_request
File "mercurial\hgweb\server.pyc", line 48, in __init__
File "SocketServer.pyc", line 638, in __init__
File "BaseHTTPServer.pyc", line 342, in handle
File "BaseHTTPServer.pyc", line 310, in handle_one_request
File "socket.pyc", line 476, in readline
error: [Errno 10054] An existing connection was forcibly closed by the remote ho
st
What should i do to rectify this ?
Requirement is i want to clone into remote repo through http.
I want to set for 3 member team working in LAN.All are windows 7 machines.
I am new to Mercurial .. please tell me where i am going wrong ?
UPDATE :
Silly mistake i missed a space between source and destination in the hg clone http:/- - - / {space} repo
It got Working.Thanks.

Sorry..
Silly mistake i missed a space between source and destination in the hg clone http:/- - - / {space} repo.
I referred this link.It is mentioned like
C:\Users\rose> hg clone http://joel.example.com:8000/ recipes
I failed to look that space in between that / and recipies.

Related

Guys where is the ".yaml" file and ".bat" file present in github repository?

yaml" file and ".bat" file present in github repository ? I am not able to build a model in anaconda using 'conda build' Can anyone please guide??
(dl) C:\Users\Nishant>conda build .
Traceback (most recent call last):
File "E:\anaconda\envs\dl\Scripts\conda-build-script.py", line 10, in
sys.exit(main())
File "E:\anaconda\envs\dl\lib\site-packages\conda_build\cli\main_build.py", line 469, in main
execute(sys.argv[1:])
File "E:\anaconda\envs\dl\lib\site-packages\conda_build\cli\main_build.py", line 460, in execute
verify=args.verify, variants=args.variants)
File "E:\anaconda\envs\dl\lib\site-packages\conda_build\api.py", line 207, in build
raise ValueError('No valid recipes found for input: {}'.format(recipe_paths_or_metadata))
ValueError: No valid recipes found for input: ['.']
From the log, it doesn't mention xxx.yaml or xx.bat file. Probably you are entering wrong input.
.yml file is configuration file called YAML. While .bat is a kind of Windows execute script. You should read carefully about readme on github repository.

bitbake-layers add-layer meta-python meta-raspberrypi failed

I have a Raspberry 4 model B and was trying to build Yocoto linux from Ubuntu for installation. I was following https://medium.com/#shantanoodesai/run-docker-on-a-raspberry-pi-4-with-yocto-project-551d6b615c0b instructions. At step
bitbake-layers add-layer ../layers/meta-openembedded/meta-python
bitbake-layers add-layer ../layers/meta-raspberrypi
I encountered the following errors
pi#raspberrypi:~/Yocto/RaspberryPi/build $ bitbake-layers add-layer ../layers/meta-openembedded/meta-python
NOTE: Starting bitbake server...
Traceback (most recent call last):
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/bin/bitbake-layers", line 93, in <module>
ret = main()
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/bin/bitbake-layers", line 61, in main
tinfoil.prepare(True)
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/tinfoil.py", line 408, in prepare
self.run_command('parseConfiguration')
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
raise TinfoilCommandFailed(result[1])
bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/command.py", line 74, in runCommand
result = command_method(self, commandline)
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/command.py", line 275, in parseConfiguration
command.cooker.parseConfiguration()
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/cooker.py", line 427, in parseConfiguration
self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/cooker.py", line 1225, in handleCollections
raise CollectionError("Errors during parsing layer configuration")
bb.cooker.CollectionError: Errors during parsing layer configuration
pi#raspberrypi:~/Yocto/RaspberryPi/build $ bitbake-layers add-layer ../layers/meta-raspberrypi
NOTE: Starting bitbake server...
Traceback (most recent call last):
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/bin/bitbake-layers", line 93, in <module>
ret = main()
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/bin/bitbake-layers", line 61, in main
tinfoil.prepare(True)
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/tinfoil.py", line 408, in prepare
self.run_command('parseConfiguration')
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
raise TinfoilCommandFailed(result[1])
bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/command.py", line 74, in runCommand
result = command_method(self, commandline)
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/command.py", line 275, in parseConfiguration
command.cooker.parseConfiguration()
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/cooker.py", line 427, in parseConfiguration
self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
File "/home/pi/Yocto/RaspberryPi/layers/poky/bitbake/lib/bb/cooker.py", line 1225, in handleCollections
raise CollectionError("Errors during parsing layer configuration")
bb.cooker.CollectionError: Errors during parsing layer configuration
Can anyone advise what should be fixed?
my gcc-multilib install also failed
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm python
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Package gcc-multilib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gcc-multilib' has no installation candidate
I think there is an issue with bitbake-layers tool in warrior release here, so an alternative is to try to open conf/bblayers.conf file in an editor and delete the last entry/line ( probably one containing meta-networking ) in BBLAYERS variable and save the file. Now continue with the bitbake-layers add-layer
bitbake-layers add-layer ../layers/meta-openembedded/meta-networking
bitbake-layers add-layer ../layers/meta-openembedded/meta-python
bitbake-layers add-layer ../layers/meta-raspberrypi
Hope this helps
i got same error and solved with below methods
all layers should be on same branch. like meta-raspberripi , meta-openembedded , meta-poky should be on same zeus branch.
we can check we are on which branch by git branch.
we can mover to branch by git checkout zeus.
if you already got error their then open bblayers.conf and delete last added layers before adding new layers again (as suggested above).

Unable to use pip to install github repo

I am not able to use anymore the pip install command to install from a github branch. I was using this line of code for the last 2 years but suddenly it stoped working:
/home/training/bin/pip install git+https://github.com/org/project#my_branch
My git version is 1.7.10 and my operating system is Red Hat Enterprise Linux Server release 6.4
The error I get is:
Cloning https://github.com/wfp-ose/django-geoexplorer.git (to wfp_migration_training) to /tmp/pip-jDnC_j-build
error: while accessing https://github.com/wfp-ose/django-geoexplorer.git/info/refs
fatal: HTTP request failed
Complete output from command /usr/bin/git clone -q https://github.com/wfp-ose/django-geoexplorer.git /tmp/pip-jDnC_j-build:
When I check in the pip log I get:
Command /usr/bin/git clone -q https://github.com/wfp-ose/django-
geoexplorer.git /tmp/pip-jDnC_j-build failed with error code 128 in None
Exception information:
Traceback (most recent call last):
File "/home/training/lib/python2.7/site-packages/pip/basecommand.py", line
122, in main
status = self.run(options, args)
File "/home/training/lib/python2.7/site-packages/pip/commands/install.py",
line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
bundle=self.bundle)
File "/home/training/lib/python2.7/site-packages/pip/req.py", line 1197, in
prepare_files
do_download,
File "/home/training/lib/python2.7/site-packages/pip/req.py", line 1360, in
unpack_url
unpack_vcs_link(link, loc, only_download)
File "/home/training/lib/python2.7/site-packages/pip/download.py", line 344,
in unpack_vcs_link
vcs_backend.unpack(location)
File "/home/training/lib/python2.7/site-packages/pip/vcs/__init__.py", line
240, in unpack
self.obtain(location)
File "/home/training/lib/python2.7/site-packages/pip/vcs/git.py", line 111,
in obtain
call_subprocess([self.cmd, 'clone', '-q', url, dest])
File "/home/training/lib/python2.7/site-packages/pip/util.py", line 697, in
call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/git clone -q https://github.com/wfp-
ose/django-geoexplorer.git /tmp/pip-jDnC_j-build failed with error code 128
in
None
I haven't changed anything in my .config file for git and I am logged in properly in my github account.
EDIT
I think this is related to this:
https://githubengineering.com/crypto-removal-notice/
See the text at https://github.com/wfp-ose/django-geoexplorer.git/info/refs:
Please upgrade your git client.
GitHub.com no longer supports git over dumb-http

Mercurial hg recover ValueError: need more than 1 value to unpack

I attempted to push to a mercurial repo and got a message that it was waiting for a lock from a co-worker who had already left for the day. This has happened multiple times as for some reason pushes across the vpn don't always get their locks cleaned up. I delete the lock and go to recover the repo but this doesn't go as normal.
>hg recover
rolling back interrupted transaction
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 3.1.1)
** Extensions loaded: eol
Traceback (most recent call last):
File "hg", line 42, in <module>
File "mercurial\dispatch.pyo", line 28, in run
File "mercurial\dispatch.pyo", line 69, in dispatch
File "mercurial\dispatch.pyo", line 138, in _runcatch
File "mercurial\dispatch.pyo", line 820, in _dispatch
File "mercurial\dispatch.pyo", line 600, in runcommand
File "mercurial\dispatch.pyo", line 911, in _runcommand
File "mercurial\dispatch.pyo", line 882, in checkargs
File "mercurial\dispatch.pyo", line 817, in <lambda>
File "mercurial\util.pyo", line 550, in check
File "mercurial\commands.pyo", line 4835, in recover
File "mercurial\localrepo.pyo", line 914, in recover
File "mercurial\transaction.pyo", line 304, in rollback
ValueError: need more than 1 value to unpack
Connecting to a repo over a VPN is a bad idea and can generally lead to corruption during operations where the vpn drops out: see this bug.
This was resolved by cloning the repo on the server at the latest successful pushed commit hg clone -r <#>
Then I had to do a fresh clone on my end from the new repository that got cloned. Then I was able to push successfully from the new repo.

Mercurial Error 400: Bad Request with return code 255

Our repository consists of two branches a Default Branch(Where new features are developed) and Stable Branch(Where bug fixes are implemented). When a developer merges the Default Branch into the stable Branch and pushes all other developers receive a Error 400: Bad Request with return code 255 when attempting to pull or push changes.
We have multiple other repositories that reside on the same server but used by different teams that do not seem to suffer from the same issues. The repository in question is used by our web development team in conjunction with the WebStorm IDE.
This is the second time we have run into this problem with the same repository. The last time it happened we created a new repository and lost all of our history. Obviously this is not the ideal solution and is highly undesirable. We would like to determine what the cause is that is leading to the error.
When we clone the repository the problem is resolved temporarily until someone pushes a new change involving merging the two branches, then everyone but the person who pushed the change begins to receive the error.
The following is the output of an hg --debug --traceback pull
C:\Dev\HosedPrism>hg --debug --traceback pull
using http://mercurialserver01:8080/hg/rproxweb_OLD/
sending capabilities command
using auth.rprox.* for authentication
http auth: user jpalumbo, password ********
pulling from http://mercurialserver01:8080/hg/rproxweb_OLD/
query 1; heads
sending heads command
http auth: user jpalumbo, password ********
searching for changes
taking initial sample
searching: 2 queries
query 2; still undecided: 208, sample size is: 200
sending known command
http auth: user jpalumbo, password ********
Traceback (most recent call last):
File "mercurial\dispatch.pyo", line 88, in _runcatch
File "mercurial\dispatch.pyo", line 743, in _dispatch
File "mercurial\dispatch.pyo", line 514, in runcommand
File "mercurial\dispatch.pyo", line 833, in _runcommand
File "mercurial\dispatch.pyo", line 804, in checkargs
File "mercurial\dispatch.pyo", line 740, in <lambda>
File "mercurial\util.pyo", line 475, in check
File "mercurial\extensions.pyo", line 144, in wrap
File "mercurial\util.pyo", line 475, in check
File "hgext\mq.pyo", line 3508, in mqcommand
File "mercurial\util.pyo", line 475, in check
File "mercurial\commands.pyo", line 4743, in pull
File "mercurial\localrepo.pyo", line 1670, in pull
File "mercurial\discovery.pyo", line 46, in findcommonincoming
File "mercurial\setdiscovery.pyo", line 182, in findcommonheads
File "mercurial\wireproto.pyo", line 115, in plain
File "mercurial\wireproto.pyo", line 163, in _submitone
File "mercurial\httppeer.pyo", line 170, in _call
File "mercurial\httppeer.pyo", line 118, in _callstream
File "urllib2.pyo", line 406, in open
File "urllib2.pyo", line 519, in http_response
File "urllib2.pyo", line 438, in error
File "urllib2.pyo", line 378, in _call_chain
File "urllib2.pyo", line 1078, in http_error_401
File "mercurial\url.pyo", line 407, in http_error_auth_reqed
File "urllib2.pyo", line 963, in http_error_auth_reqed
File "urllib2.pyo", line 974, in retry_http_digest_auth
File "urllib2.pyo", line 406, in open
File "urllib2.pyo", line 519, in http_response
File "urllib2.pyo", line 444, in error
File "urllib2.pyo", line 378, in _call_chain
File "urllib2.pyo", line 527, in http_error_default
HTTPError: HTTP Error 400: Bad Request
abort: HTTP Error 400: Bad Request
hg verify does not report any corruption in the repository.
I attempted to use the hg rollback command, per the following question Mercurial keeps returning Error 400: Bad Request.
However this did not seem to resolve the problem.
Has anyone ever run into a similar problem? Or have any insight as to what the issue could be? I would be forever grateful for any help, not only to save our history but the prevent this from occurring again in the future.