Questions tagged [hglib]

Also known as python-hglib. It is a python library to interface with the Mercurial's command server.

Python-Hglib is the python library under an MIT license that serves as an interface to the Mercurial's Commandserver.

6 questions
2
votes
2 answers

How to know if a branch is closed using its changeset?

An in-house build system builds every commit made on a branch. But, in Mercurial, to close a branch you have to make "close commit" kinda thing, triggering a build for that commit. This is a problem because we are wasting resources on unnecessary…
2
votes
1 answer

Hglib: How to connect to remote repo using over ssh?

Using "raw" mercurial API I can write just something like: peer = hg.peer(ui.ui(), {}, 'ssh://hg@bitbucket.org/some/project') After the connection is established, I can work with remote repo. I'm failing to understand what should work with a remote…
shabunc
  • 23,119
  • 19
  • 77
  • 102
1
vote
1 answer

How do I stop hg child process when using hglib

I have a Python application in Mercurial. In the application I found the need to display from which commit it is currently running. The best solution I have found so far is to make use of hglib. I have a module which looks like this: def…
kasperd
  • 1,952
  • 1
  • 20
  • 31
1
vote
3 answers

committing a single file using python-hglib

I am trying to implement a rudimentary scm using python-hglib. So far I have managed to connect to a repo (local) and I want to commit a single file among many. I am not sure how to do this. Consider the following: client =…
user595985
  • 1,543
  • 4
  • 29
  • 55
0
votes
2 answers

hglib: show patches for a revision, possible?

I'm trying to get the patches for a given revision using hglib. I know the hg command is hg log -pr rev but I can't find how to do this or equivalent with hglib. It seems there is not functionality to do that, unless I hack the code myself to run…
martinako
  • 2,690
  • 1
  • 25
  • 44
0
votes
1 answer

Why does hglib not allow status for a revision and changes?

To get a list of changes, this answer gives the command line: hg status --change REV But calling status using hglib gives an error: >>> client.status(rev=-1, change=True) Traceback (most recent call last): File "", line 1, in
Peter Wood
  • 23,859
  • 5
  • 60
  • 99