Jump to content

Hacking:Tools: Difference between revisions

803 bytes removed ,  5 years ago
m
URL updates, change to Git, rebranding
(Changing valentina to seamly / seamly2D)
m (URL updates, change to Git, rebranding)
Line 1:
__TOC__
== hg-git ExtensionGit ==
For export to github and launchpad we use hg-git extension. Please read these two articles for more details: [https://hg-git.github.io/ the Hg-Git mercurial plugin] and [http://mercurial.selenic.com/wiki/HgGit hg-git Extension].<br />
 
Our code repo on Github is here: https://github.com/FashionFreedom/Seamly2D
'''Warning!''' ''Because service Launchpad doesn't use git repository directly and converts to Bazaar we can't use hg-git version higher than 0.6.1.''<br />
 
Please learn Git and workflow guidelines:
For our work we use code from repository http://bitbucket.org/durin42/hg-git/<br />
1. Basic Git: https://zaiste.net/git_for_busy_people/
2. The Git Flow method: https://datasift.github.io/gitflow/IntroducingGitFlow.html/
3. Using semantic commit messages: https://seesparkbox.com/foundry/semantic_commit_messages/
 
== Canonical/Ubuntu Launchpad and Bazaar ==
Usage: For working extension need to create a bookmark. Command
<source lang="bash">
hg bookmark -f master
</source>
will set a bookmark for current branch. Most actively we export 'develop' and 'default'.
 
Launchpad mirrors the Seamly2D git repo here: https://launchpad.net/~susan-spencer/+archive/ubuntu/seamly2d
Before pushing create path 'github' in .hgrc file.
<source lang="ini">
[extensions]
hgext.bookmarks =
hggit = /home/dismine/hg-git/hggit
 
[paths]
github = git+ssh://git@github.com/<user_name>/<repository_name>.git
</source>
 
Run
<source lang="bash">
hg push github
</source>
for pushing changes to github.
 
'''Note''' the command can hang. You can wait finish or close terminal without losing data.
 
== Qt Creator ==
When you use Qt you have two IDE to choose: Qt Creator and Visual Studio. Yes, last information what i have says that Eclipse doesn't have support for Qt5.
 
First look better begin from [https://www.qt.io/ide/ the official website].
 
For effective usinguse of Qt Creator you will need know some stuff.
* Qt Creator supports Mercurial,Git so creating and deleting files better to do from the IDE. Be sure to to choose appropriate .pri file.
* Qt Creator's file wizard allow you to select correct file where it add files.
* [https://doc.qt.io/qtcreator/creator-keyboard-shortcuts.html Keyboard Shortcuts].
Line 45 ⟶ 27:
* Set max length of source code line equal 120 characters. '''Tools->Options->Text Editor->Display'''.
* Compile faster. For this use -j key for make. '''Projects->Build Steps->Make''' add -jX - where X number of cpu in your system.
* Don't forget Qt Creator supportsupports two release modemodes: release'''Release''' and debug'''Debug'''. Project will be compile with different keys in different modes. Qt team recommended developing to do in debug mode. Also debugging works only in debug mode. Plus Qt will show additional warning information if something happened.
 
See '''[[Hacking:Tools:QtCreator:Ubuntu]]''' for description of installing and configuring Qt on 64-bit Ubuntu 14.04.
 
Line 236 ⟶ 219:
 
Have fun hunting down memory issues.
 
== Github ==
The use of Mercurial was changed with the use of github
 
https://github.com/FashionFreedom/Seamly2D
Cookies help us deliver our services. By using our services, you agree to our use of cookies.