在拉入Mercurial(使用TortoiseHG)之前会自动搁置吗? [英] Automatic shelve before pulling in Mercurial (with TortoiseHG)?

查看:143
本文介绍了在拉入Mercurial(使用TortoiseHG)之前会自动搁置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些不想提交的更改文件(例如,web.config).在提取并更新到新变更集之前,必须搁置它们.后拉&更新,我必须搁置它们.

I have some changed files I don't want to commit (e.g. web.config). Before I pull and update to new changesets, I have to shelve them. After the pull & update, I have to unshelve them.

我目前正在使用TortoiseHG.有没有可以自动执行此操作的扩展程序?

I'm currently using TortoiseHG. Is there any extension which can do this automatically?

推荐答案

我会提出其他建议:您可以使用两个不同的配置文件,而不必总是搁置和搁置:一个是存储库的一部分,其中包含虚拟/示例数据,以及每个用户实际在本地使用的另一个数据,Mercurial会忽略该数据.

I'd suggest something else: instead of always shelving and unshelving, you could use two different config files: one which is part of the repository and contains dummy/example data, and another one which each user really uses locally, which is ignored by Mercurial.

查看此答案,以获得我的意思的更详细说明.
我提供的示例是针对Visual Studio的,从其他问题和答案中可以看出,您显然是在使用.net和Visual Studio,因此您可以完全按照编写的方式使用我的示例.

Check out this answer for a more detailed explanation what I mean.
The example I'm giving there is for Visual Studio, and I see from your other questions and answers that you're apparently using .net and Visual Studio, so you can just use my example exactly as written.

这篇关于在拉入Mercurial(使用TortoiseHG)之前会自动搁置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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