ouvert_a_tous:dafop_2014:mercurial:z-partage_depot

Création d'un dépôt avec scm-manager

Exemple : dépôt ljb

Le dépôt est public.

Utilisateurs :

  • bruno : write
  • daniele : owner

* A RE - VERIFIER *

Sur le poste d'un développeur

Clone avec :

hg clone http://bruno@192.168.108.111:8080/scm/hg/ljb

Il ne demande pas le mot de passe de bruno car le dépôt est public.

Création d'un fichier

hg status
hg add
hg commit -u bruno -m "Ajout de fic1"
fic1.txt
calling hook commit.lfiles: hgext.largefiles.reposetup.checkrequireslfiles
committed changeset 0:a76a07c8b1eed9745dbab54afce2a356f66a3dd7
F:\__2013_2014\_stage\essais\sauveIetH\essais\mercurial\ljb> hg incoming
using http://192.168.108.111:8080/scm/hg/ljb
http auth: user bruno, password not set
sending capabilities command
comparing with http://bruno@192.168.108.111:8080/scm/hg/ljb
query 1; heads
sending batch command
searching for changes
1 total queries
no changes found

Il ne demande pas de mot de passe car le dépôt est public.

On passe le dépôt en "non-public" (on décoche la cas dans scm-manager)

F:\__2013_2014\_stage\essais\sauveIetH\essais\mercurial\ljb> hg incoming
using http://192.168.108.111:8080/scm/hg/ljb
http auth: user bruno, password not set
sending capabilities command
[HgKeyring] Keyring URL: http://192.168.108.111:8080/scm/hg/ljb
[HgKeyring] Looking for password for user bruno and url http://192.168.108.111:8080/scm/hg
/ljb
[HgKeyring] Password not present in the keyring
http authorization required
realm: SONIA :: SCM Manager
user: bruno (fixed in .hg/hgrc)
password:
[HgKeyring] Saving password for bruno to keyring
[HgKeyring] Manually entered password. Url: http://192.168.108.111:8080/scm/hg/ljb, user:
bruno, passwd: *******
comparing with http://bruno@192.168.108.111:8080/scm/hg/ljb
query 1; heads
sending batch command
searching for changes
1 total queries
no changes found

Pb : ça fonctionne :Mémorisation du mot de passe ??? Attention :bruno est aussi adminsitrateur : à vérifier ???

Si on fait :

F:\__2013_2014\_stage\essais\sauveIetH\essais\mercurial>hg clone http://192.168.108.111:8080/scm/hg/ljb ljb3

On obtient : using http://192.168.108.111:8080/scm/hg/ljb sending capabilities command [HgKeyring] Keyring URL: http://192.168.108.111:8080/scm/hg/ljb Username not specified in .hg/hgrc. Keyring will not be used. http authorization required realm: SONIA :: SCM Manager user: bruno </code> Puis

password:
[HgKeyring] Manually entered password. Url: http://192.168.108.111:8080/scm/hg/ljb, user:
bruno, passwd: *******
query 1; heads
sending batch command
no changes found
preparing listkeys for "phases"
sending listkeys command
preparing listkeys for "bookmarks"
sending listkeys command
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

hg outgoing

hg incoming

  • ouvert_a_tous/dafop_2014/mercurial/z-partage_depot.txt
  • Dernière modification : 2022/12/03 07:45
  • de 127.0.0.1