ouvert_a_tous:dafop_2014:mercurial:build_xml

Création d'un fichier build.xml en utilisant Redmine et Mercurial

H:\essais\build_xml>hg clone http://192.168.108.111:8080/scm/hg/build_xml/

using http://192.168.108.111:8080/scm/hg/build_xml/
sending capabilities command
[HgKeyring] Keyring URL: http://192.168.108.111:8080/scm/hg/build_xml/
Username not specified in .hg/hgrc. Keyring will not be used.
http authorization required
realm: SONIA :: SCM Manager
user: daniele
password:

Saisie du mot de passe

[HgKeyring] Manually entered password. Url: http://192.168.108.111:8080/scm/hg/build_xml/,
 user: daniele, passwd: *******
destination directory: build_xml
query 1; heads
sending batch command
requesting all changes
sending getbundle command
adding changesets
changesets: 1 chunks
add changeset 5b4782aaddd2
changesets: 2 chunks
add changeset 8b21deb1ddf9
adding manifests
manifests: 1/2 chunks (50.00%)
manifests: 2/2 chunks (100.00%)
adding file changes
adding .hgignore revisions
files: 1/2 chunks (50.00%)
adding build.xml revisions
files: 2/2 chunks (100.00%)
added 2 changesets with 2 changes to 2 files
preparing listkeys for "phases"
sending listkeys command
updating the branch cache
calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles
preparing listkeys for "bookmarks"
sending listkeys command
updating to branch default
resolving manifests
 branchmerge: False, force: False, partial: False
 ancestor: 000000000000, local: 000000000000+, remote: 8b21deb1ddf9
 .hgignore: remote created -> g
 build.xml: remote created -> g
getting .hgignore
getting build.xml
updating: build.xml 2/2 files (100.00%)
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

Dans le dépôt

Révisions

H:\essais\build_xml>hg log

changeset:   1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590
tag:         tip
parent:      0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
parent:      -1:0000000000000000000000000000000000000000
manifest:    1:539f3f20213ae06e60497f9a35e91e982f9baea7
user:        daniele
date:        Thu Jun 19 22:28:00 2014 +0200
files+:      build.xml
extra:       branch=default
description:
Ajout du fichier build.xml closes #2

changeset:   0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
parent:      -1:0000000000000000000000000000000000000000
parent:      -1:0000000000000000000000000000000000000000
manifest:    0:18fcc6f123166e6a2092782a3e09b434bdeb43a2
user:        daniele
date:        Thu Jun 19 22:27:28 2014 +0200
files+:      .hgignore
extra:       branch=default
description:
Paramétrage du depot Mercurial closes #6

H:\essais\build_xml>hg branches

default                        1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590

H:\essais\build_xml>hg glog –style compact

@  1[tip]:0,-1   8b21deb1ddf9   2014-06-19 22:28 +0200   daniele
|    Ajout du fichier build.xml closes #2
|
o  0:-1,-1   5b4782aaddd2   2014-06-19 22:27 +0200   daniele
     Paramétrage du depot Mercurial closes #6

H:\essais\build_xml>hg log

changeset:   1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590
tag:         tip
parent:      0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
parent:      -1:0000000000000000000000000000000000000000
manifest:    1:539f3f20213ae06e60497f9a35e91e982f9baea7
user:        daniele
date:        Thu Jun 19 22:28:00 2014 +0200
files+:      build.xml
extra:       branch=default
description:
Ajout du fichier build.xml closes #2

changeset:   0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
parent:      -1:0000000000000000000000000000000000000000
parent:      -1:0000000000000000000000000000000000000000
manifest:    0:18fcc6f123166e6a2092782a3e09b434bdeb43a2
user:        daniele
date:        Thu Jun 19 22:27:28 2014 +0200
files+:      .hgignore
extra:       branch=default
description:
ParamÚtrage du depot Mercurial closes #6

H:\essais\build_xml>hg branches

default                        1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590

H:\essais\build_xml>hg glog –style compact

@  1[tip]:0,-1   8b21deb1ddf9   2014-06-19 22:28 +0200   daniele
|    Ajout du fichier build.xml closes #2
|
o  0:-1,-1   5b4782aaddd2   2014-06-19 22:27 +0200   daniele
     Paramétrage du depot Mercurial closes #6
Branches et Têtes

H:\essais\build_xml>hg heads

changeset:   1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590
tag:         tip
parent:      0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
parent:      -1:0000000000000000000000000000000000000000
manifest:    1:539f3f20213ae06e60497f9a35e91e982f9baea7
user:        daniele
date:        Thu Jun 19 22:28:00 2014 +0200
files+:      build.xml
extra:       branch=default
description:
Ajout du fichier build.xml closes #2
Étiquettes

H:\essais\build_xml>hg tags

tip                                1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590

H:\essais\build_xml>hg glog

@  changeset:   1:8b21deb1ddf97d6f16239a2d08151be2aa8cc590
|  tag:         tip
|  parent:      0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
|  parent:      -1:0000000000000000000000000000000000000000
|  manifest:    1:539f3f20213ae06e60497f9a35e91e982f9baea7
|  user:        daniele
|  date:        Thu Jun 19 22:28:00 2014 +0200
|  files+:      build.xml
|  extra:       branch=default
|  description:
|  Ajout du fichier build.xml closes #2
|
|
o  changeset:   0:5b4782aaddd2bfe24cc34abfc4cc468bae934122
   parent:      -1:0000000000000000000000000000000000000000
   parent:      -1:0000000000000000000000000000000000000000
   manifest:    0:18fcc6f123166e6a2092782a3e09b434bdeb43a2
   user:        daniele
   date:        Thu Jun 19 22:27:28 2014 +0200
   files+:      .hgignore
   extra:       branch=default
   description:
   ParamÚtrage du depot Mercurial closes #6
Sommaire

Cette commande permet de connaître l'état de la copie de travail.

H:\essais\build_xml>hg summary

parent: 1:8b21deb1ddf9 tip
 Ajout du fichier build.xml closes #2
branch: default
commit: (clean)
update: (current)
mq:     (empty queue)
H:\essais\build_xml_clone_pour_f-compile>**hg summary**<code>
parent: 17:1d93d3a95151 tip
 Création d'une cible init et d'une cible compile dans build.xml - refs #7
branch: f-compile
commit: (clean)
update: (current)
mq:     (empty queue)

H:\essais\build_xml_clone_pour_f-compile>hg branch

f-compile

H:\essais\build_xml_clone_pour_f-compile>hg update default

resolving manifests
 branchmerge: False, force: False, partial: False
 ancestor: 1d93d3a95151, local: 1d93d3a95151+, remote: 6bb137890448
 build.xml: remote is newer -> g
getting build.xml
updating: build.xml 1/1 files (100.00%)
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

H:\essais\build_xml_clone_pour_f-compile>hg branch

default

</code> H:\essais\build_xml_clone_pour_f-compile>hg summary

parent: 11:6bb137890448
 Fusion de stable dans default LISEZMOI.txt precise le workflow
branch: default
commit: (clean)
update: (current)
mq:     (empty queue)

Dans la copie de travail

H:\essais\>cd build_xml

H:\essais\build_xml>ls

build_xml

H:\essais\build_xml>ls -al

drwxrwxrwx   1 user     group           0 Jun 20 10:48 .
drwxrwxrwx   1 user     group           0 Jun 19 15:29 ..
drwxrwxrwx   1 user     group           0 Jun 23 11:55 .hg
-rw-rw-rw-   1 user     group          31 Jun 23 11:55 .hgignore
-rw-rw-rw-   1 user     group          36 Jun 23 11:55 build.xml

H:\essais\build_xml>type build.xml

<project  basedir=".">
</project>

$ hg push –new-branch

http authorization required
realm: SONIA :: SCM Manager
user: daniele
password:
pushing to http://192.168.108.111:8080/scm/hg/build_xml/
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 10 changesets with 5 changes to 2 files (+1 heads)
root@badafop2014redmine tempo_hg/build_xml#
 hg outgoing
 
 hg incoming
  • ouvert_a_tous/dafop_2014/mercurial/build_xml.txt
  • Dernière modification : 2022/12/03 07:45
  • de 127.0.0.1