mercurial

Mysql Backup with Mercurial

霸气de小男生 提交于 2019-12-21 12:11:53
问题 is it possible to take ? I researched at Google, I found few articles, but in German and other langs, so didnt understand well. It would be great if we could get mysql back-up from server to localhost with Mercurial [at localhost]. maybe with Remote Mysql Connection, etc. do you know any way of doing this? is it possible? Thanks!! Regards... 回答1: Presuming you want to store a periodic backup in a version control repository there are three steps: Setup the mercurial repository where you want

Mercurial repo too large, can't connect, clone

给你一囗甜甜゛ 提交于 2019-12-21 11:38:59
问题 Our BitBucket repo has grown to over 3 gigs and now when I try to clone in SourceTree all I get is the trying to connect symbol. When I try in Tortoise it clones to a certain point then disconnects saying it expected # bytes but got #. I can't download the .zip from BitBucket because it's too large. What can I do to clone? 回答1: Clone to an old revision, using hg clone -r <revision> , and pull the rest. You can also pull progressively, if necessary. 回答2: I also experienced this problem with a

Splicing over discontinuities in Mercurial repository timeline

二次信任 提交于 2019-12-21 11:34:54
问题 I converted a Subversion repository to Mercurial a few months back and I wound up leaving two meaningless gaps in my revision history. I'm trying to figure out if I can just splice over the gaps, but I haven't been able to get the tools to do precisely what I want. I had reorganized the Subversion repo twice in the early days of the project: first to convert a single project root to trunk/branches/tags layout, and then to add a second related project in a second root folder with it's own

creating new remote repository for existing project with Mercurial

一世执手 提交于 2019-12-21 11:28:15
问题 I have a project with version.2 and i have to start working on it to develop a new version.3 . I want to create a new repo on a remote server (i.e. a mercurial-server) so that my team member could access that repo .I have my project file on my local machine . I have two concerned questions : How can I create it in /home/hg/repositories/private/project3 (Lets say new repo name would be project3) of remote mercurial-server with my project files. What steps should I follow to do this. How can I

Branching in Mercurial

安稳与你 提交于 2019-12-21 10:18:45
问题 I have starting using Mercurial for my (our) versioning needs. I have now come to the point that I need to create a feature branch. However, now that I have started working on it -- and I try to push my changes, I keep getting a warning about new remote heads. That's stupid, I know that there will be new remote head(s) that's what a branch after all is? How am I supposed to create branches and push them without this problem, without using force push as it is surely not the right way to go,

Branching in Mercurial

心不动则不痛 提交于 2019-12-21 10:16:29
问题 I have starting using Mercurial for my (our) versioning needs. I have now come to the point that I need to create a feature branch. However, now that I have started working on it -- and I try to push my changes, I keep getting a warning about new remote heads. That's stupid, I know that there will be new remote head(s) that's what a branch after all is? How am I supposed to create branches and push them without this problem, without using force push as it is surely not the right way to go,

How do popular source control systems differentiate binary files from text files

拈花ヽ惹草 提交于 2019-12-21 09:54:45
问题 Looking for articles, documentation or straight head knowledge of how different source control systems differentiate (or detect) the type of file (binary vs. text). Of particular interest is how Git does it vs Mercurial. Do they look at: File extensions? File signatures or content (ie. is this file UTF8)? A mix of things? 回答1: SVN: When you first add or import a file into Subversion, the file is examined to determine if it is a binary file. Currently, Subversion just looks at the first 1024

Mercurial, “Branching with bookmarks”

时间秒杀一切 提交于 2019-12-21 09:35:15
问题 I read this document: A Guide to Branching with Mercurial, specifically the section titled Branching with Bookmarks. It says: Now you’ve got two bookmarks (essentially a tag) for your two branches at the current changeset. To switch to one of these branches you can use hg update feature to update to the tip changeset of that branch and mark yourself as working on that branch. When you commit, it will move the bookmark to the newly created changeset. I tried this, but it ended up moving both

How well “hg mv” command performs

杀马特。学长 韩版系。学妹 提交于 2019-12-21 09:19:21
问题 Let's say, there is file.txt in a repo and two people are hacking it. One of them moved file.txt to another folder with hg mv and immediately pushed this into the repo. Is there any chance that Mercurial will automatically merge changes from original file.txt into the moved file.txt when the colleague decides to push its own touch ups? Am I too optimistic? 回答1: Short answer: Yes, you can. Long example: a classical Java refactoring vs code change in same file mkdir hgmv cd hgmv/ mkdir -p com

Distributed version control for HUGE projects - is it feasible?

柔情痞子 提交于 2019-12-21 07:53:35
问题 We're pretty happy with SVN right now, but Joel's tutorial intrigued me. So I was wondering - would it be feasible in our situation too? The thing is - our SVN repository is HUGE. The software itself has a 15 years old legacy and has survived several different source control systems already. There are over 68,000 revisions (changesets), the source itself takes up over 100MB and I cant even begin to guess how many GB the whole repository consumes. The problem then is simple - a clone of the