mercurial

Execute command on linux terminal using subprocess in python

≡放荡痞女 提交于 2019-12-24 15:32:19
问题 I want to execute following command on linux terminal using python script hg log -r "((last(tag())):(first(last(tag(),2))))" work This command give changesets between last two tags who have affected files in "work" directory I tried: import subprocess releaseNotesFile = 'diff.txt' with open(releaseNotesFile, 'w') as f: f.write(subprocess.call(['hg', 'log', '-r', '"((last(tag())):(first(last(tag(),2))))"', 'work'])) error: abort: unknown revision '((last(tag())):(first(last(tag(),2))))'!

“ImportError: DLL load failed” when attempting hg serve (Windows)

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:39:06
问题 I am new to Mercurial and just installed EasyMercurial on my Windows 7 machine to learn it. I have created several repositories, and have been successfully making commits and pushes and pulls. However, when I tried the "hg serve" command, the server doesn't start. This is the error message that I get (debugging turned on in case that helps): PS C:\scripts> hg serve --debugger entering debugger - type c to continue starting hg or h for help > c:\scripts\mercurial\dispatch.pyo(87)_runcatch()

Mercurial authentication info in history

廉价感情. 提交于 2019-12-24 14:21:10
问题 I have a "central" Mercurial repository, which configured to use HTTPS and requires authentication to clone-pull-push changes. Developers has their own repositories on their computers. They configure their local settings freely, and for example add section like [ui] username = anyname to their local mercurial.ini file. When a user try to push his changes to the "central" repository, he authenticates, but authentication info is not stored in Mercurial. Mercurial store locally configured

How to update an Eclipse plugin from a password protected site?

孤人 提交于 2019-12-24 12:26:04
问题 I read on [this site(http://javaforge.com/project/HGE) that I need to "sign-up" in order to download the Eclipse plugin for Mercurial. I signed up but nothing appears to happen. When I try to download the plugin by going to Help => Install new software and typing in the site address (http://cbes.javaforge.com/update), Eclipse states it's unable to connect, "Error Contacting Site: No software site found ..." (I don't get to type in a password / username). I then read on this site that the

How to ignore certain folders in HG?

拈花ヽ惹草 提交于 2019-12-24 10:17:58
问题 I have my project folder - Project. In Project I have other sub projects - SUBPROJECT1, SUBPROJECT2, SUBPROJECT3. In each sub project I have folders, among which I have BIN and OBJ. However, I want the latter to be ignored such that when I commit I don`t have the changes made to BIN and OBJ. How can I do that? 回答1: You'll need to edit your .hgignore file, and include the following lines: glob:bin\ glob:obj\ You probably want at least these other things as well: glob:*.user glob:*.suo glob:

Mercurial ReviewBoard and post-review

感情迁移 提交于 2019-12-24 10:02:21
问题 so here is the story so far, I have installed review board on linux environment, I have configured everything, installed post-review and it works... What does not work is the repository. Our repository was migrated at some point from SVN to mercurial, then there were lot of crude file management made like moving files around without hg move. So what I wanted was to run a script that would gather and post reviews for every cset containing more than two parents (every cset that was merged to

git for mercurial like git-svn

爱⌒轻易说出口 提交于 2019-12-24 09:54:04
问题 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 some tool for mercurial for that ? 回答1: See this related SO question: Git interoperability with a Mercurial Repository It seems that hg2git is of interest. It is part of the git fast-export family of tools. If you want hg to push/pull from a git repo, then consider the Hg-Git Mercurial Plugin. 回答2:

Embedding a github repository inside a mercurial (kiln) repository - how integrated is it?

旧时模样 提交于 2019-12-24 09:26:40
问题 Summarised Question: Are github-hosted sub repositories within a mercurial/kiln repository possible, and if so are they automatically updated/cloned when the parent mercurial repository is operated on by a hg clone or hg commit command? Detailed Question: Following on from my question that was answered so excellently here , some of my third party code is in folders I downloaded a while ago from opensource efforts on github. Since at that stage I was not using version control, those folders

ignore certain *lines* when merging files

我怕爱的太早我们不能终老 提交于 2019-12-24 08:14:15
问题 I have a repository with two branches, A and B . They are meant to be the same code, but aimed at different versions of the libraries they depend on. So A/file1.js might have a snippet in it like so: this.actor.bar(); whilst B/file1.js might have: // `bar` had its name changed to `foo` in version X.Y of library Z this.actor.foo(); Then I go along into A say and make a whole bunch of changes that are compatible with both versions of library Z and want to merge them into B . Is there any way I

Fine Grained ACLs For Mercurial On Own Server

三世轮回 提交于 2019-12-24 08:08:05
问题 We are planning to switch from SVN to a DVCS, probably mercurial. To collaborate, we'd like to still have a central server though. Currently, we use AuthzSVNAccessFile for ACLs and authentication to our central SVN server. In the ACL file, we granted read/write access to groups/users to complete repositories or only subdirectories similar to that example (however for many repositories): [repo:/foo] bob = rw [repo:/bar] alice = rw [repo:/common] @repo-clients = r The question is: what is the