【问题标题】:Is there an hg equivalent to git-info?是否有与 git-info 等效的 hg?
【发布时间】:2017-02-01 22:16:45
【问题描述】:

我有 git-info,它是 git-extras 的一部分。我实际上是想知道远程存储库 URL -

┌─[shirish@debian] - [~/games/libcpuid] - [10328]
└─[$] git-info

## Remote URLs:

origin  https://github.com/anrieff/libcpuid (fetch)
origin  https://github.com/anrieff/libcpuid (push)

## Remote Branches:

  origin/HEAD -> origin/master
  origin/master

## Local Branches:

* master

## Most Recent Commit:

commit fa87a5e183a3809ded89ecb3efde4e94837c5736
Author: Veselin Georgiev <anrieff@gmail.com>

    Fixed issue #78: date in changelog is wrong

Type 'git log' for more commits, or 'git show <commit id>' for full commit details.

## Configuration (.git/config):

user.name=Shirish Agarwal
user.email=shirishag75@gmail.com
core.editor=leafpad
core.excludesfiles=/home/shirish/.gitignore
core.gitproxy="ssh" for gitorious.org
merge.tool=meld
push.default=simple
color.ui=true
color.status=auto
color.branch=auto
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/anrieff/libcpuid
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

我试过是否有来自汞方面的东西,但结果是空的:(

关于如何在 Hg/mercurial 实例中将远程 repo 信息获取到 CLI 的任何想法?

我确实查看了https://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/,但找不到等效的命令。

【问题讨论】:

    标签: git mercurial debian


    【解决方案1】:

    如果你想要的只是 URL:

    $ hg paths
    default = https://www.mercurial-scm.org/repo/hg
    

    请参阅hg help pathshg help urlshg help config

    【讨论】:

      猜你喜欢
      • 2017-11-09
      • 2018-09-18
      • 1970-01-01
      • 2011-01-17
      • 1970-01-01
      • 2012-10-18
      • 1970-01-01
      • 2011-11-29
      • 1970-01-01
      相关资源
      最近更新 更多