~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/add-bzr-to-baz

  • Committer: Martin Pool
  • Date: 2005-05-10 08:15:58 UTC
  • Revision ID: mbp@sourcefrog.net-20050510081558-9a38e2c46ba4ebc4
- Patch from Fredrik Lundh to check Python version and 
  try to find a better one if it's too old.

  Patched to try to prevent infinite loops in wierd configurations,
  and to log to stderr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
# Add a file that's version by bzr to baz with the same file-id
 
4
 
 
5
if [ $# -ne 1 ]
 
6
then
 
7
    echo "usage: $0 FILE" >&2
 
8
    exit 1
 
9
fi
 
10
 
 
11
baz add -i $( bzr file-id $1 ) $1
 
12