dvcs

How can I completely replace a bitbucket repository with another repository?

笑着哭i 提交于 2019-11-28 19:36:30
I recently had to make a couple of changes which required rebuilding the repository using hg convert . Unfortunately, this means the bitbucket repo is now inconsistent with the copy I have locally. I don't want to just "blow away" the repo as it exists on bitbucket, because that gets rid of all the other customizations / issue tracking etc. that are associated with the project there. Is it possible to completely wipe the repository from Bitbucket's view of things and push everything from my local (fixed) repo there? You can strip the changesets from the Bitbucket repository. Go to https:/

Can I clone part of a Mercurial repository?

末鹿安然 提交于 2019-11-28 19:35:17
问题 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 Subversion, you might have trunk and branches . If I only want to get trunk (or one of the branches) I can just request [project]/trunk . If I clone the hg repo I'll get trunk and all of the branches. This might be a lot of information I don't want. Can I avoid getting this? Alternatively, if I

Introduction to Mercurial

穿精又带淫゛_ 提交于 2019-11-28 18:54:25
I have just begun working on a project which uses Mercurial as a version control system, and I need some basic tips on how to use this. Please use this question to give some introductory tips on this technology. The official Mercurial site Especially, I am looking for tips on the best programs to use and the best techniques to use (branches, in and out-checking etc. I need to learn the best-practices!) Steven Lyons I know you already have the Mercurial site but the resource most useful to me was the Mercurial book . It's an excellent overview of the program and how to use it. I found the best

NuGet and distributed version control (DVCS)

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 18:17:45
问题 I wonder if it is possible to use nuget to only store references to the required packages in version control (only the package.config and ignore the packages folder). Is there a way to tell nuget to (re)download all the referenced packages in the various package.config files? Or something similar which could be put into a build script. Update: Seems that I'm not the only one who requested this feature: See this work item (thanks to PHeiberg for the hint) Update 2: NuGet now has this feature

How to automatically remove all .orig files in Mercurial working tree?

你说的曾经没有我的故事 提交于 2019-11-28 17:44:00
During merges mercurial leaves .orig file for any unresolved file. But after manually resolving problems and marking a file correct it does not delete the .orig file. Can it be automatically removed by some command? I work on a Mac so I can use something like: find . -iname '*.orig' -exec rm '{}' ';' and alias it or something, but I'd rather use something like hg cleanup... UPDATE: Since some time now, Purge extension is bundled with Mercurial and solves this problem nicely. Martin Geisler Personally, I use $ rm **/*.orig if I get tired of the .orig files. This works in Zsh and in Bash 4 after

Mercurial with multiple projects

断了今生、忘了曾经 提交于 2019-11-28 17:28:57
I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then merged from there into trunk. Now, for multiple reasons, I want to switch from SVN to mercurial with a central push site. Question: Which is the best way in mercurial to organize multiple projects that share little code between them? Should I create multiple push sites, one for each project? Please include in the answer a description on how to

Mercurial: Merging one file between branches in one repo

谁说我不能喝 提交于 2019-11-28 16:11:27
When I have two branches in Hg repo, how to merge only one file with another branch, without having all other files from changeset merged? Is it possible to merge only certain files, instead of whole changeset? WARNING: such a "dummy merge", as is recommended by @Martin_Geisler, can really mess you up, if later you want to do a true merge of the two branches. The dummy merge will be recorded, and say that you merge into the branch you did the dummy merge to -- you will not see the changes. Or if you merge into the other branch, the changes on that other branch will be undone. If all you want

How to use mercurial for release management?

假装没事ソ 提交于 2019-11-28 15:54:56
This is a cousin question with my earlier question of "How to manage concurrent development with mercurial", which covers individual developer workflow. The answer to this question will actually influence the choice for developer workflow. This is NOT a general "release management best practice" or CI question, as it has been asked many times with good answers, and there's a huge body of literature available to kill time. I'm only asking for specific ways to use mercurial within the context of release management . The most obvious and predominant answer would supposedly be stable/default ,

Bitbucket: Update a fork to merge changes of master repo?

与世无争的帅哥 提交于 2019-11-28 15:45:33
问题 I am working with a bitbucket git repo I have read-only access to, so I created a fork to work on my features. Question: How do I update my fork to include changes made to the original repo made by the owner? On github, it seems one has to do the following, so I suspect it's a similar to this: $ git remote add upstream git://github.com/octocat/Spoon-Knife.git $ git fetch upstream $ git merge upstream/master I couldn't find any information on this in the Bitbucket Documentation for forking 回答1

A pretty and feature rich git GUI for Linux [closed]

无人久伴 提交于 2019-11-28 15:25:57
问题 I was checking out for a rich GUI for Git on Linux . Of late I have started using it a lot and find that even though command-line is very useful, I would still want a GUI at my disposal since I am not still very much aware with the advanced features. I came across this question on SO before, but I still have to ask this question again, as that question doesn't have my answer I have used git-cola and gitk , but they look half-baked and gitk looks like I am working on some other DE. All the