Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1
matthew@seymour:~$  hg  commit  -m  'First  commit.'

In Mercurial, a commit does not change the remote files but only commits
the change to your local copy. If you want others to see your changes, you
must push the changes to them:


Click here to view code image
matthew@seymour:~$ hg push


To update the source code in your local repository from the main repository to
make sure you have all the latest changes to the code from other developers,
use this:


Click here to view code image
matthew@seymour:~$ hg update


Many open source projects that use Mercurial host their code using Bitbucket.
You can find it at http://bitbucket.org.


Introduction to Opportunistic Development


Say that you have an idea for a program that will save time by automating a
repetitive task. You plan for it to have a pretty GUI, and you think there are
probably others out there who would like to use the tool after it is written. The
problem is that you work full time, have a family, and already have a ton of
side projects that do not get enough attention. You are either not able or not
willing to sit down and study how Ubuntu packages programs to get them into
the official software repositories. (If you are, however, see the links in the
“References” section.)


It used to be that you had one simple choice at this juncture: Write the
program and put it on a website for others to find—and hope that maybe
someone would find it useful, make a .deb package, and upload it into either
the Debian or Ubuntu repositories. That is no longer the only option if your
goal is simply to write your tool and make the software available to Ubuntu
users. Now, you need to be technically proficient at writing whatever code
you want to write, and you need to be able to understand complex systems,
but Ubuntu is reducing the complexity for getting that code written and
making it available to the wider community. Developers who want only to
scratch that one itch can now do so without reading tons of documentation
about tools they expect to use rarely or only once.


Launchpad

Free download pdf