cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

SpanishTransaltionFreegh es

Administrando Freehg desde NetBeans

Pasos.

I. Hosting

Image:freehg_SpanishTransaltionFreegh_es.png

1. Registrar una cuenta en http://freehg.org/

     En este caso crearemos una cuenta nueva. Utilizamos los siguientes datos.
    usuario: aristides
    password:test14nb$

2. Creamos el repositorio llamado

 aplicacion

Damos click en el botòn crear repositorio Image:repositorio_SpanishTransaltionFreegh_es.png

  • El repositorio creado es
  http://freehg.org/u/aristides/aplicacion
  • Freehg nos da la sugerencia para enviar los archivos mediante

hg push http://freehg.org/u/aristides/aplicacion

  • Para obtener del repositorio mediante

hg clone http://freehg.org/u/aristides/aplicacion/


  • Editar el perfil en freehg

Image:linkprofile_SpanishTransaltionFreegh_es.png Editamos los datos Image:profile_SpanishTransaltionFreegh_es.png

3. Instalar Mercurial

  • Desde Ubuntu
 Ejecutamos 
      sudo apt-get install mercurial
   


4. Entrar a NetBeans , y seleccionar en el ménu

    Versioning
   

5. Hacer un clone other desde el menu mercurial

   Mercurial
   Clone Other

Image:clone_SpanishTransaltionFreegh_es.png

  • En la ventana Clone External Repository

Indicamos el Repository URL

 http://freehg.org/u/aristides/aplicacion/ 

Image:url_SpanishTransaltionFreegh_es.png

  • El IDE nos muestra el path predeterminado para el Push y Pull.

Image:mercurialpath_SpanishTransaltionFreegh_es.png

  • Podemos cambiarlo y le indicamos el usuario y password, para que el proceso de enviar cambios al servidor sea mas sencillo.

Agregando el usuario:password@repositorio

http://aristides:test14nb$@freehg.org/u/aristides/aplicacion/

Quedaria de la siguiente manera. Image:nuevopath_SpanishTransaltionFreegh_es.png

  • Indicamos el directorio destino en nuestro disco para el repositorio

Image:directoriodestino_SpanishTransaltionFreegh_es.png Presionamos el botón FINISH.


  • El IDE genera el informe en la ventana de salida

Image:output_SpanishTransaltionFreegh_es.png

No hay nada en el servidor, es la primera vez. El mercurial crea la carpeta aplicacion dentro de hglocal. Image:carpeta_SpanishTransaltionFreegh_es.png

6. Agregarlo a Favoritos Seleccionamos en el ménu de NetBeans, la opción

  Windows 
  Favorites
(o Presionamos CTRL +3)
Luego damos click derecho y seleccionamos agregar a Favorites

Image:agregarfavoritos_SpanishTransaltionFreegh_es.png

  • Seleccionamos la carpeta /aplicacion

Image:agregado_SpanishTransaltionFreegh_es.png

7. Copiamos suma.java a la carpeta /home/avbravo/hglocal/aplicacion. Image:archivo_SpanishTransaltionFreegh_es.png

8. Damos click derecho en aplicacion, y seleccionamos Mercurial Diff Image:diff_SpanishTransaltionFreegh_es.png

  • Se muestran los cambios que se han producido

Image:sumadiff_SpanishTransaltionFreegh_es.png

9. Ejecutamos el commit Image:commitall_SpanishTransaltionFreegh_es.png

  • Indicamos un mensaje en el commit

Image:commitmessage_SpanishTransaltionFreegh_es.png dar click al botón Commit

  • NetBeans muestra la salida del commit

Image:outputcommit_SpanishTransaltionFreegh_es.png


9.Ejecutar Push to Other

http://aristides:test14nb$@freehg.org/u/aristides/aplicacion/

Image:pushother_SpanishTransaltionFreegh_es.png

  • Resultao del push

Image:resultadopush_SpanishTransaltionFreegh_es.png

Verificamos los cambios en el servidor

Entrando desde el browser http://freehg.org/u/aristides/aplicacion/ y verificamos change. Image:web_SpanishTransaltionFreegh_es.png

Nota:

A veces es necesario ejecutar el push

Cuando otros actualizan los módulos, solo tenemos que ejecutar

 mercurial
 update



Regresar