Doing patch with mercurial,hg

While working with X-noise, I was unable to find my patch after committing a change. After changing the files I did

$ hg commit

it said me to enter the title. I did that. After that while doing

$hg diff .

It was showing me the change of the previous commit(not which I committed now). Seeing that I thought that commit has not been done properly and committed again.

$ hg commit

$hg diff .

But it was showing nothing. I saw the log using

$hg log

It shows that there is one commit. Then I did

$hg log –patch

It shows all the patches done till now. Then I searched and found a good document. Then did

$hg tip –patch > my_patch.patch

It gives a file called “my_patch.patch” , containing the last commit details.

For more details please read    http://hgbook.red-bean.com/read/

have a fun…

X-noise the rocking Music Player Editing GUI

A few days back I installed the xnoise music palyer. It looks very good with many more features than a normal Music player. I looked on the source code of the music player which was given with the src.rpm. In the mean time,Kushal Das said me about it. I found it is written in vala, thought to work with that. At first I cloned the X noise repository. But due to my internet problem I could not download the code. Next day I downloaded the code creating a local repository using command line. It is very interesting to work with a music player. I mailed to the Xnoise mailing list. I got a very nice reply from Jörn, which encouraged me a lot.

As I found in the xnoise GUI that the left side bar or the media bar cannot be hided from the main window, if any user does not want to see that bar there is no option.

In my patch I have added one hide or show button which will hide or show the left bar or the media bar as users choice.When the player will be started then the button will be in “Hide Media” mode and the media bar will be seen.

If any user does not want to see the media bar the he has to just press the “Hide Media” button and the bar will be hided in all the modes (vedio, Lyrics, Track list) and the button will be in “Show Media” mode.

If anyone wants to see the media button back he has to press the “Show Media” button. And the media bar will be shown.

It is my first patch. I Enjoyed a lot to do this…

Follow

Get every new post delivered to your Inbox.