~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/show-rev

  • Committer: Robert Collins
  • Date: 2005-09-13 12:39:26 UTC
  • mto: (147.2.6) (364.1.3 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: robertc@robertcollins.net-20050913123926-b72242bdacc1ae52
create the output directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Copyright (C) 2004 Aaron Bentley
 
3
#
 
4
# See the file "COPYING" for further information about
 
5
# the copyright and warranty status of this work.
 
6
 
 
7
. "$abadir/aba-lib"
 
8
 
 
9
cmd_exec()
 
10
{
 
11
  if [ -d ~/.aba/changeset ]; then
 
12
    yes|rm -R ~/.aba/changeset
 
13
  fi
 
14
  revision=`aba_full_revision $1`
 
15
  if [ -z "$revision" ]; then
 
16
    echo Unable to determine a full revision spec from $1
 
17
    exit 1
 
18
  fi
 
19
  if tla get-changeset $revision ~/.aba/changeset; then
 
20
    tla show-changeset --diffs ~/.aba/changeset
 
21
  fi
 
22
  if [ -d ~/.aba/changeset ]; then 
 
23
    yes|rm -R ~/.aba/changeset
 
24
  fi
 
25
}
 
26
cmd_desc()
 
27
{
 
28
  echo '                    show-rev : shows the changes that appeared in a revision'
 
29
}
 
30
cmd_help()
 
31
{
 
32
  echo 'Displays the changes in a given revision.'
 
33
}
 
34
cmd_ext_help()
 
35
{
 
36
  echo 'Works a lot like get-changeset.'
 
37
}
 
38
aba_run "$@"
 
39
# arch-tag: show-rev by Aaron Bentley (12:20 Jan 15, 2004)