mercurial

Mercurial Acl Extension deny pull of some files

谁说我不能喝 提交于 2019-12-11 08:59:12
问题 I'm new mercurial user. I setup the acl extension adding this into my hgrc file: [hooks] pretxnchangegroup.acl = python:hgext.acl.hook [acl] sources = serve pull push [acl.deny] ** = mercurial So with this code above I deny access to all files to user "mercurial". I successfully tested the acl extension and it works perfectly when I try to push to my central repository on which I put the code above. As expected I receive message that the access for the user "mercurial" is denied. Now the

How do you resolve the error “abort uncommitted changes” when trying to “hg merge”, when there are no changes?

∥☆過路亽.° 提交于 2019-12-11 08:44:37
问题 I did a fresh checkout of my mercurial project and updated to the tip. I am trying to merge with another branch, but get the error abort uncommitted changes . > hg up 0 files updated, 0 files merged, 0 files removed, 0 files unresolved updated to "f9e1acf1f459: <commit message>" 1 other heads for branch "<branch>" > hg merge abort: uncommitted changes (use 'hg status' to list changes) > hg status > hg status -i > hg status -u > hg summary parent: 7008:f9e1acf1f459 tip <message for last commit

hg convert not actually converting?

空扰寡人 提交于 2019-12-11 08:35:49
问题 I run the following hg command and see a whole bunch of revision numbers & their messages fly past my screen, but when it finishes the destination hg repository is empty. hg convert -s p4 //depot/proj1/... c:\hg\proj1 --config convert.p4.startrev=1267 What am I doing wrong? 回答1: When in doubt, use the summary command . You'll probably see something like this: $ hg sum parent: -1:000000000000 (no revision checked out) branch: default commit: (clean) update: 15225 new changesets (update) This

Weird negative lookahead handling in hgignore

大兔子大兔子 提交于 2019-12-11 08:24:58
问题 Out of a huge source tree, i want just one subfolder be tracked by Mercurial. specific/component/subfolder In any decent regex tool (Regex Coach, regexpal.com), the following is absolutely sufficient (and understandable) ^(?!specific/component/subfolder).+ meanwhile .hgignore insists on having ^(?!extras).+ ^extras/(?!extensions).+ ^extras/extensions/(?!sharing).+ as soon as i put slash inside the lookahead group, nothing gets through. Before calling this a bug (perhaps of yet another

In Mercurial, when Peter “hg clone” me, and I commit and he pull and update, he gets my version, but not when I rollback?

蓝咒 提交于 2019-12-11 08:15:11
问题 That is, in Mercurial, if Peter cloned from me by hg clone c:\mycode e:\code into his e:\code let's say there is a file code.txt and it contains the text the code is 7 Now, when I change it to the code is 11 and hg commit, then he can get my code using hg pull and hg update. Now his version says the code is 11 But if I decide the change was wrong and hg rollback, then my repository should have the 7 version, while the working directory should have the 11 version. So when Peter does an hg pull

SVN “missing revision” when moving to Mercurial

眉间皱痕 提交于 2019-12-11 08:08:18
问题 We're trying to move from Subversion to Mercurial and we've hit a snag. "svnadmin verify" produces this error: svnadmin: No such revision 21228 Looking on the server, there is no file in the "revs" directory for 21228. Everything else is intact and the current head is working perfectly (we're on revision 63000 or so now). We don't really care about this revision, but we don't really want to lose the history for 1-21227 when converting. Does anyone know of a way of forcing SVN to ignore this

How to get all closed branches via command line in mercurial?

一个人想着一个人 提交于 2019-12-11 07:33:33
问题 In command line I can get all heads without closed branches via: hg heads Also I can get all heads with closed branches via: hg heads --closed But, how do I can know all closed branches via command line? 回答1: RTM hg help revsets hg log -r "closed()" Samples: >hg heads -T "{rev}:{node|short}\n" 9:caaade505e23 5:0c0ceaa4a8d2 3:3c58290b241d 1:99f7ad94a56f >hg heads -c -T "{rev}:{node|short}\n" 10:fc7ddfb862bd 9:caaade505e23 5:0c0ceaa4a8d2 3:3c58290b241d 1:99f7ad94a56f >hg log -r "closed()" -T "

How many repositories should I use to maintain my scripts under version control?

流过昼夜 提交于 2019-12-11 07:22:03
问题 I mainly code small programs for myself, but recently, I've been starting to code for my peers on my team. To that end, I've started using a Mercurial repository to maintain my code in some form of version control (specifically, Tortoise-Hg on Windows). I have many small scripts, each in their own directory, all under one repository. However, while reading Joel's Hg Tutorial, I tried cloning a directory for one of my bigger scripts to create a "stable" version and found I couldn't do it

Cannot commit in mercurial repo

北慕城南 提交于 2019-12-11 06:34:32
问题 I have a Mercuirial (3.6.1) project. Every time I try to commit I get the next error. (project)➜ project hg:(default) ✗ hg commit -m "TICK-190" subfolder/models.py ** unknown exception encountered, please report by visiting ** https://mercurial-scm.org/wiki/BugTracker ** Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] ** Mercurial Distributed SCM (version 3.6.1) ** Extensions loaded: Traceback (most recent call last): File "/home/django/project/bin/hg", line 43, in <module>

Mercurial plugin config panel not shown for Manage Jenkins -> Configure System

谁说胖子不能爱 提交于 2019-12-11 06:34:06
问题 I am using Jenkins, I a trying to configure Mercurial inside Jenkins. But I can not find Mercurial section inside Configure System , to configure Mercurial Paths in Jenkins. Is their any solution ? 回答1: I found it under Manage Jenkins=>Global Tool Configuration 来源: https://stackoverflow.com/questions/56515835/mercurial-plugin-config-panel-not-shown-for-manage-jenkins-configure-system