Clone a Codebeamer Repository and Commit with an Associated Issue
Create a new Codebeamer project with a Managed Mercurial Repository and the name of the repository should be hgtest. Follow the steps described in Creating Managed Repositories.
Create a new issue in the Bugs tracker of the new project. This example assumes that the new issue gets the ID 1000 and the project was created by the account bond which has the password 007.
On Linux/Unix hg must be in your PATH. In Windows, add Mercurial to thePATH with the command below:
set PATH="C:\Dokumente und Einstellungen\zk\Eigene
Dateien\CB\libexec\hg";%PATH%
Cloning the Repository.
hg clone http://bond:007@localhost/hg/hgtest
Adding a New File to the Repository.
cd hgtest
echo hello > readme.txt
hg add readme.txt
Committing (with a Codebeamer Issue) and Pushing Changes into the Upstream Repository
hg commit -u bond -m "#1000 just a commit"
hg push
Now after refreshing the browser window with issue details and the change set should appear under SCM Commits tab.
MercurialEclipse Plugin can be also used to work with Managed Mercurial Repositories.
Hints ant tips
Solving HTTP Error 413: Request Entity Too Large errors
If you receive an error like this - which can happen if you have lots of heads or branches in Mercurial:
hg pull --verbose
pulling from https://<url.of.mercurial.repo>
searching for changes
abort: HTTP Error 413: Request Entity Too Large
The fix is to increase the HTTP request sizes from the default 16 Kbytes to 64kbytes.
For this edit the following files, both in Apache configuration and also in Codebeamer's tomcat installation:
/etc/httpd/conf/worker.properties
#worker.ajp13_worker.max_packet_size=16384
worker.ajp13_worker.max_packet_size=65536
/etc/httpd/conf/httpd.conf
#LimitRequestFieldSize 12392
LimitRequestFieldSize 65536
#LimitRequestLine 12392
LimitRequestLine 65536
and $CB_HOME/tomcat/conf/server.xml.
<Connector port="8009"
protocol="AJP/1.3"
... etc...
<!--packetSize="16384"-->
packetSize="65536"
/>
Was this helpful?