~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2005-06-07 18:52:04 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050607185204-5fc1f0e3d393b909
Added NEWS, obsoleted bzr-pull

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)