• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/support/download/hg
Bjørn ForsmanBjørn Forsman committed acc76a6ef9f21 Oct 2014
Raw file
Source viewDiff to previous
 
1
#!/usr/bin/env bash
2
​
3
# We want to catch any unexpected failure, and exit immediately
4
set -e
5
​
6
# Download helper for hg, to be called from the download wrapper script
7
# Expected arguments:
8
#   $1: output file
9
#   $2: hg repo
10
#   $3: hg cset
11
#   $4: package's basename (eg. foobar-1.2.3)
12
# And this environment:
13
#   HG       : the hg command to call
14
​
15
output="${1}"
16
repo="${2}"
17
cset="${3}"
18
basename="${4}"
19
​
20
${HG} clone --noupdate --rev "${cset}" "${repo}" "${basename}"
21
​
22
${HG} archive --repository "${basename}" --type tgz \
23
              --prefix "${basename}" --rev "${cset}" \
24
              "${output}"
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.