zoukankan      html  css  js  c++  java
  • Mercurial 安装及使用

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
    本文链接:https://blog.csdn.net/moonspiritacm/article/details/80863421

    1. 版本控制系统

    • 集中式版本控制系统:Subversion(SVN)、CVS、VSS 等。

    • 分布式版本控制系统:Git、Mercurial(Hg) 等。

    目前,应用较广泛的版本控制系统有 Git 和 SVN,二者分别代表着分布式和集中式版本控制系统的鲜明特点,这两类系统组织形式会在今后很长一段时间内共存。

    相比之下,Mercurial 略显小众。这款由 Python 编写的分布式版本控制系统,具备出色的跨平台能力(基于 Python)和平滑的学习曲线,一度被视为 Git 的有力竞争者。随着 Git 的日益完善,包括 TortoiseGit 等开源项目的出现加强了 Git 在 Windows 平台上的支持,以及 GitHub 的出现简化了 Git 开发模型进而降低了学习难度,Mercurial 已渐渐被人遗忘。

    由于 OpenJDK 托管在 Mercurial 平台上,稍微接触了一下 Mercurial。个人认为,目前与 Mercurial 打交道的场合可能仅限于远程仓库的克隆和更新,掌握一些基本操作足矣。

    更多关于 CVS、SVN、Git、Hg 等版本控制系统的比较,请参考 https://www.cnblogs.com/likebeta/archive/2012/12/18/2822805.html

    2. Ubuntu 平台安装和使用

    pip install mercurial  # 通过 pip 安装 Mercurial
    
    hg --version  # 查看 Mercurial 版本
    
    hg clone http://hg.openjdk.java.net/jdk8/jdk8 openjdk8  # 克隆远程仓库
    
    hg log  # 查看仓库历史
    
    hg pull  # 拉取代码
    
    hg status  # 查看仓库状态
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    3. 参考文献

  • 相关阅读:
    (转载)MySQL日期时间函数大全
    Tcl commands
    Toplevel
    tk 8.4 commands
    iwidgets
    Options for Buttontype widgets
    Text Widget Options
    tk options
    itk_option
    Widget Options
  • 原文地址:https://www.cnblogs.com/lcword/p/11996353.html
Copyright © 2011-2022 走看看