mercurial

What is the status of the Mercurial Shallow Clone extension?

半城伤御伤魂 提交于 2019-12-11 01:58:12
问题 Talk of Shallow Clone Extension There had been some talk about work on an unofficial Shallow Clone extension for Mercurial. This extension would function similarly to the git clone --depth X extension, but would provide better push support and merge safety. Basically, it would let users clone a smaller sub-set of history to save time and space, but still benefit from all the other benefits of hg. After all, not all developers need the whole history back to changeset 0 to be productive. Links

Eclipse as IDE + Mercurial for version control + ? Bug tracking = Good idea? [closed]

允我心安 提交于 2019-12-11 01:43:36
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 months ago . For a new Java web project I thought about using: Eclipse as IDE Mercurial for version control Some kind of bug tracking software I have heard of bug tracking software where you can tie a change to an unresolved bug when you check it in. I haven't used any such solution

Windows Mercurial global keychain

浪子不回头ぞ 提交于 2019-12-11 01:29:26
问题 I'm in the middle of trying to get mercurial working on a windows build server and am having issues. I went to the trouble of setting up the mercurial keychain (I had to install tortoisehg), and it works on a per-user basis. The problem is that I'm using Bamboo to run the builds, and it runs as an NT service owned by SYSTEM . Thus, any time it tries to do anything with hg, it gets prompted for a password. Obviously, I could put the password into a config file, but I want to avoid a plaintext

precommit mercurial hook to stop commits to the wrong branch

浪尽此生 提交于 2019-12-11 01:16:17
问题 I have a piece of software in a Mercurial repository. I'm packaging my software project as a Debian package. It seems the standard way to do this is to have a separate branch for the Debian package files, which live in the debian sub-directory. One problem I keep having is that I forget which branch I am on and accidentally commit to the wrong branch. This happens frequently, and is really annoying. When this happens I usually push to remote before realising the problem, and then have to fix

Using GIT to implement Dropbox type functionality

一世执手 提交于 2019-12-11 00:48:27
问题 I'd like to implement a mechanism to synchronize files across multiple machines. I don't particularly care about files that are older than 1 month, so there is no need to keep that data around. Git seems to do almost all of this except for eliminating old revisions. Is there a destructive command that lets me say "Kill all revisions older than X" ? Or if there is another VCS tool I can use to accomplish the same thing, I'd be very interested. 回答1: You dont need to implement that youself. It

Mercurial hook to set policy on tag names

倾然丶 夕夏残阳落幕 提交于 2019-12-11 00:44:18
问题 I write (in-process) hook to prevent add BAD tag name locally: .hg/hgrc : pretag.badtagname = python:.hg/hgcheck.py:localbadtag .hg/hgcheck.py : goodtag_re = r'(ver-\d+\.\d+\.\d+|tip)$' def localbadtag(ui, repo, hooktype, node, **kwargs): assert(hooktype == 'pretag') re_ = re.compile(goodtag_re) if not re_.match(tag): ui.warn('Invalid tag name "%s".\n' % tag) ui.warn('Use one of tip, ver-xx.xx.xx\n') return True return False How make this check for pretxnchangegroup hook? I try write this

Using the Hg Convert Extension, Branchmap Option

两盒软妹~` 提交于 2019-12-11 00:44:18
问题 I've got 2 Mercurial repositories RepoA and RepoB , 2 people have been working independenlty on each of their repos, RepoA only has one branch(Default) but 9 commits, RepoB has 2 branches, Default and Experiment1, each of these branches have approx 30 commits. Now it turns out that RepoB is a subset of RepoA, i.e alot of the stuff in RepoB can be put into RepoA. I'd like to Pull(import) all the contents of RepoB into a branch in RepoA. I do not want the import to go the Default branch of

Is there a tool similar to repo or git-repo for hg/Mercurial?

拈花ヽ惹草 提交于 2019-12-10 23:45:58
问题 I am a bit new to hg and while I am familiar with the python-based repo tool (used in project like the Android Open Source Project) I am not aware of one for Mercurial. Is there such a tool for hg? 回答1: I'm not very familiar with repo , but my understanding was that it allowed them to construct a project out of lots of smaller repositories. If that's the case then it's just built in. Subrepositories. 回答2: Edlund was kind enough to open-source their repoman tool, which was directly inspired by

Mercurial - How to disable push

余生长醉 提交于 2019-12-10 23:45:46
问题 I am trying to find if there is an easy way to make a mercurial repository read-only. The user should be able to clone, but no pushes should be allowed. I need to do this for all my repositories which is more than 100. 回答1: You can do this like this in .hg/hgrc: [hooks] prechangegroup = false 回答2: This depends on how you're publishing your repositories but here's a few things you can try, depending on this: If you're publishing your repositories on network shares or mounted volumes, simply

Mercurial internals : Git subrepository status after aggressive permission change

a 夏天 提交于 2019-12-10 23:42:17
问题 Disclaimer : I'm not asking for a solution, a workaround or any kind of advice on how to do things, I'm just curious about the internals of Mercurial. I have a mercurial repository with some subrepository in it (Git and Mercurial). My repository and all subrepo are in a clean state (ie: hg st -S returns nothing). I do some aggressive permission changes at the root : chown www-data:www-data -R * Now, hg st -S returns each and every file of the Git subrepos (the Mercurial ones are still