English 中文(简体)
如何使用汞对组合进行核对并重新命名?
原标题:How to checkout configuration file and rename it using mercurial?

我如何把档案从家庭/家庭/家庭/家庭/家庭/议会复印出去。 在我不跟踪的情况下,每当我打上头巾时,便装入我的当地衣物吗?

例如

> ls -l /home/hg/repo1
  file_one.py
  file_two.py

> hg clone /home/hg/repo1 /home/me/repo1
> cd /home/me/repo1
> ls -l /home/me/repo1
  file_one.py
  file_two.py
  config.ini

Thanks, Martin

问题回答

这样做的首选方法是跟踪一个名为config.ini.example的文档,然后将其复制到config.ini,并将其列入.hgignore。 您也可提出<代码>config.ini。 如果它尚未存在,则它先运行。

没有任何(有文件记载的)黄色用于克隆行动,因为当你 clo时,你会建立一个新的存放处。 由于该邮袋是新的品牌,因此没有.hgrc文档来界定hoo。 这就是说,你操作的hoo是new<>/em> Deposit,而不是old

你可以 do,但你会发现,这比仅仅建立一个明确的README.txt更麻烦。

The hook would look like:

[hooks]
post-clone = cp -i config.ini.sample config.ini

正如保罗·菲舍尔所指出的,最好使用<条码>。 页: 1 这偏离了背书。

VonC指出,问题在于:如果克隆也带下了hoo,那么我就把 <带上了后cl = rm-rf ~

因此,如果你重新确定如何绕过它,就是把 h放在别处。 在公司环境下,可在<代码>/etc/mercurial/hgrc中做到这一点。 如果所有系统都有适当的信息技术配置,它们可以集中处理。 既然你确信会有一台/家/大客机的用户,那么就象你这样说,你可能谈论的是一台单一机器上的所有衣物,因此,这是你的一种微薄的选择。 然而,在更为分散的环境中,你回头来,让每个人都用人工安装自己想要的 h子:~/hgrc,此时,你可能也有理由自行复印。

www.un.org/Depts/DGACM/index_spanish.htm 值得考虑的一个想法是,如果贵国正在对<代码>config.ini进行解释,将予以核对。 档案中有<条码>包括类似指令? 然后,您可以打上<代码>config.ini。 looks:

... some stuff
%include /home/configs/config.ini
... more stuff

在此情况下,无需复制。 例如,Mecurial公司的确包含一项指令,其作用类似于:

One way would be to define a hook like changegroup, in which you perform the copy right after the clone.
Only problem: that hook won t run with hard-linked paths, as reported in issue 1602.

如你刚才需要硬拷贝,这样,每当你操作<编码>hg Update,载于/home/me/repo1。 http://www.un.org/Depts/DGACM/index_french.htm

rm /home/configs/config.ini
ln /home/me/repo1/config.ini /home/configs/config.ini

请注意,你不必去掉一个酒吧,以更新你的作品。 Just use hgdra and hg Update.





相关问题
Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial repository? Let s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part of the repository? E.g. in ...

Sync files in Two Different Repos using HG

I ve got a problem when I try to sync files in two different repos. What I want to do is: I ve got 2 repos A and B, and they share some common files, suppose they lie in A/docs/common/ and B/docs/...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

git for mercurial like git-svn

Hello is there a tool for git that allow to work with mercurial repositories F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way.. So is there ...

Useful Mercurial Hooks [closed]

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don t find these very ...