在Mercurial(hg)中,如果出现"hg push",您将如何查看将被推送的文件列表.发行了吗? [英] In Mercurial (hg), how do you see a list of files that will be pushed if an "hg push" is issued?

查看:45
本文介绍了在Mercurial(hg)中,如果出现"hg push",您将如何查看将被推送的文件列表.发行了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用查看所有变更集和涉及的文件

We can see all the changesets and the files involved using

hg outgoing -v

但是文件名都分散在变更集列表中.

but the filenames are all scattered in the list of changesets.

是否有一种方法可以仅查看发布hg push时将消失的所有文件的列表?

Is there a way to just see a list of all the files that will go out if hg push is issued?

推荐答案

首先,创建一个具有以下内容的文件:

First, create a file with this content:

changeset = "{files}"
file = "{file}\n"

假设您将其命名为out-style.txt并将其放在主目录中.然后,您可以输入以下命令:

Let's say you call it out-style.txt and put it in your home directory. Then you can give this command:

hg -q outgoing --style ~/out-style.txt | sort -u

这篇关于在Mercurial(hg)中,如果出现"hg push",您将如何查看将被推送的文件列表.发行了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆