[Yanel-dev] First steps with Mercurial

Balz Schreier balz.schreier at gmail.com
Wed Mar 2 12:06:09 CET 2011


Here it is:

Working with the Yanel Mirror with Mercurial (hg)

   - Location: http://hg.wyona.com/
   - Get a copy of the mirror:
   hg clone http://hg.wyona.com/yanel-mercurial-mirror yanel-hg


   - HG Installation:
   apt-get install mercurial
   - Initialisieren direkt im Root-Repository-Ordner:
   hg init
   - Status anzeigen:
   hg st
   - Alle Files adden (betrifft die neuen Files!):
   hg add
   - Committen (-A bewirkt, dass alles commited wird, modified, new):
   hg commit -A
   - History von Commits anschauen:
   hg log
   - Remote hinzufügen (in einem repository, das mit hg init erstellt wurde,
   muss das remote noch konfiguriert werden):
   es gibt keine Kommando wie bei git, also .hg/hgrc editieren und eine
   zeile hinzufügen, z.B:
   michi = http://192.168.1.69:8000/
   - Klonen (in diesem Falle muss obiger Befehl nicht gemacht werden, weil
   beim Clonen automatisch “default” der Name vom remote repo ist):
   hg clone http://hg.wyona.com/yanel-mercurial-mirror yanel-hg
   ()
   - Committen zum Remote Repository (Push):
   hg push <remotename> (e.g. default)
   - Lokale Daten auf den allerneusten Stand setzen (lokale Änderungen gehen
   verloren):
   hg update -C
   - Lokale Daten auf einen bestimmten Stand setzen:
   hg update REV
   (Wobei REV = Commit-Number, Hash, Branch-Name, Tag oder Bookmark)

Cheers
Balz

On Wed, Mar 2, 2011 at 12:03 PM, Balz Schreier <balz.schreier at gmail.com>wrote:

> Hi Michael,
>
> I will send a summary that I received by Cedric today... just a second.
> Cheers
> Balz
>
>
> On Wed, Mar 2, 2011 at 12:00 PM, Michael Wechner <
> michael.wechner at wyona.com> wrote:
>
>> Hi
>>
>> Balz and I are currently taking our first steps with Mercurial.
>>
>> Both of us have a local clone of the master version (default =
>> http://hg.wyona.com/yanel-mercurial-mirror)
>>
>> Balz has now made some changes and provided his version (hg serve) to me
>> and I have added his server
>> to the file ".hg/hgrc"
>>
>> balz = http://192.168.1.47:8000/
>>
>> and now was able to get his changes using
>>
>> hg pull balz
>> hg update
>>
>> So far so good ;-) BUT how can I see the differences now between my
>> version and the default/master version?
>>
>> Any pointers are much appreciated.
>>
>> Thanks
>>
>> Michael
>> --
>> Yanel-development mailing list Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110302/c59837d8/attachment.html>


More information about the Yanel-development mailing list