mercurial

Mercurial - pull all remote bookmarks without knowing names?

依然范特西╮ 提交于 2019-12-23 12:34:09
问题 Is there an option in Mercurial that allows me to pull all remote bookmarks without having to know their names in advance? On the Mercurial Bookmarks page it mentions that when I clone a repository, I get all the bookmarks. However, I'm in the situation where I already have the repository, create a few heads, each with a bookmark explaining what they are, and push all (including the bookmarks) to the server. When Bob pulls my changes he is going to get all the hanging heads I've created and

Can I use Subversion for a multi gigabyte data set?

一个人想着一个人 提交于 2019-12-23 12:32:30
问题 The data set is 97984 files in 6766 folders with 2,57 GB. A lot of them are binary files. For me this does not sound so much. The daily data change rate is in the hundreds of KB on maybe 50 files. But I'm scared that subversion will become extremely slow. It was never fast anyway and the last time at v1.2 the recommendation was splitting it into multiple repositories. No, I don't like this. Is there way that I can tell Subversion or any other free open source version control to trust the file

Reading command line arguments from Mercurial prechangegroup hook

人盡茶涼 提交于 2019-12-23 12:24:34
问题 I'm attempting to disallow pushes to a Mercurial repository if a certain condition holds true. However, it is essential that if the user uses push --force , the push goes through regardless. I know that it's easy enough to do this on the machine that's doing the push by using the pre-push hook, which passes in the command line arguments to the hook. However, since hooks aren't propagated, I'd have to somehow distribute the hook to every single user of the repository and rely on them not

Mercurial: can I ignore a file for push/pull but still commit? (.hgsub)

纵然是瞬间 提交于 2019-12-23 12:24:13
问题 I have a repo with two sub-repos set up like this: project/ |-- folder1 |-- folder2 |-- www [subrepo] |-- dev [subrepo] On Machine A, I have checked out project, www, and dev, and modified .hgsub as such. I have to commit this in order for the www and dev subrepositories to be recognised by hg (commit -S, etc). However Machine B only uses the www functionality of the project, so it looks like this: project/ |-- folder1 |-- folder2 |-- www [subrepo] Again, the .hgsub in Machine B only has an

Converting mercurial repository to svn repository

女生的网名这么多〃 提交于 2019-12-23 12:18:05
问题 I know you can convert svn repository to mercurial repository (or use mercurial as a client to svn repo) but what I want is to convert mercurial repository to svn repository. We have some tool that uses SVNKit, and we'd like to continue use it, but want to be able to work on mercurial repository. Hence we want to completely convert mercurial repo to svn repo. Is that something that's possible? (and how?) 回答1: Consider using hgsubversion which lets you work on a svn repo from within mercurial,

Is there a downside to this Mercurial workflow: named branch “dead” head?

為{幸葍}努か 提交于 2019-12-23 10:24:09
问题 I love the flexibility of named branches but I have some concerns about the prolifieration of heads. Even when the branch is closed, it still shows up in the heads. I have an idea for how to clean up the output from "hg heads" My question to the gurus: "What am I missing?" First off you may ask, Why might I want to totally hide the head of a named branch? For various reasons: the feature is a bad idea the feature is a good idea that is not ready for merging to tip, but maybe in a few months

Mercurial: a few questions all related to .hgignore

依然范特西╮ 提交于 2019-12-23 09:41:11
问题 I've been working for a long time with a .hgignore file that was fine and recently added one new type of files to ignore. When running "hg status", I noticed this: M .hgignore So Mercurial considers the .hgignore to be a file that needs to be tracked (if it's a the root of the project). Now I've read various docs but my points weren't specifically adressed so here are some very detailed questions which hopefully can help me figure this out (it would be great is someone answering could quote

How to expand some version keywords in Mercurial?

左心房为你撑大大i 提交于 2019-12-23 09:38:27
问题 In CVS I could put $LOG$ into the source file and when the file is checked in $LOG$ will be expanded into true logs in the file. But how to implement this in Mercurial? Of course I mean the other keyword such as the latest checkin date and time. 回答1: For most of the problems keyword expansion solves it creates a whole heap more; isn't recommended in Mercurial CVS/RCS-like Keyword Substitution - Why You Don't Need It however it is documented how to do it with expansions if you really need to.

Mercurial - how to see the history for a specific line of code

末鹿安然 提交于 2019-12-23 09:36:35
问题 I have a CSS file with thousands of lines of code. I want to see when a specific line/chunk of code was changed, without going back and reviewing each revision that changed this file (that will take a looooong time!) Is there a way, using either TortoiseHg, Eclipse with a Mercurial plugin, or command-line, to view the history of a specific piece of code? 回答1: The correct answer is hg grep (Mercurial grep page). More deep: hg grep --all "PATTERN" FILENAME Sample output: >hg grep --all

Mercurial - differences merging repository A->B vs B->A?

…衆ロ難τιáo~ 提交于 2019-12-23 09:33:07
问题 Given repository A and repository B (created off a clone of changeset A2): A1 - A2 - A3 - A4 - A5 \ B3 - B4 Say we wanted to merge these two repositories together. Is there any difference if we merged repo B into repo A versus merging repo A into repo B? The only diff I can think of is the merge tool local/base arguments would be reversed depending on which option you chose. Are there any other differences to be aware of? 回答1: Generally merges are symmetric, with a few exceptions: If the