Skip to content

Commit

Permalink
tryclient: retrieve full id for Mercurial + sync docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed Jan 20, 2010
1 parent 88bf71b commit 0975142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildbot/scripts/tryclient.py
Expand Up @@ -174,7 +174,7 @@ class MercurialExtractor(SourceStampExtractor):
patchlevel = 1
vcexe = "hg"
def getBaseRevision(self):
d = self.dovc(["identify"])
d = self.dovc(["identify", "--id", "--debug"])
d.addCallback(self.parseStatus)
return d
def parseStatus(self, output):
Expand Down
7 changes: 4 additions & 3 deletions docs/buildbot.texinfo
Expand Up @@ -9071,9 +9071,10 @@ revision. Then it does @code{tla changes --diffs} to obtain the patch.
then a @code{bzr diff -r$base..} to obtain the patch.

@item Mercurial
@code{hg identify} emits a short revision ID (basically a truncated
SHA1 hash of the current revision's contents), which is used as the
base revision. @code{hg diff} then provides the patch relative to that
@code{hg identify --debug} emits the full revision id (as opposed to
the common 12-char truncated) which is a SHA1 hash of the current
revision's contents. This is used as the base revision.
@code{hg diff} then provides the patch relative to that
revision. For @command{try} to work, your working directory must only
have patches that are available from the same remotely-available
repository that the build process' @code{source.Mercurial} will use.
Expand Down

0 comments on commit 0975142

Please sign in to comment.