~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/star-merge-undo

  • Committer: Robert Collins
  • Date: 2005-09-08 11:21:38 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-20050908112138-033369d3cacacb55
test and deliver basic pending-merges into bzr so that merging is recorded

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
# executes the command ("$@" are the arguments after the command name)
 
10
cmd_exec()
 
11
{
 
12
  if [ -z "$1" ]; then
 
13
    echo No star-merge version/revision specified >&2
 
14
    exit 1
 
15
  fi
 
16
  aba_star_merge_undo "$@"
 
17
}
 
18
 
 
19
# one-liner description for aba help
 
20
cmd_desc()
 
21
{
 
22
    aba_desc $(basename $0) "reverts the changes from a star-merge"
 
23
}
 
24
 
 
25
# short help for aba command -h, --help
 
26
cmd_help()
 
27
{
 
28
    cat <<EOH
 
29
reverts the changes from a star-merge
 
30
usage: $abaname $(basename $0) [options] [FROM]
 
31
 
 
32
All star-merge options may be used, except for --changes
 
33
Only the changes from the star-merge are reverted.  All other changes will 
 
34
remain.
 
35
EOH
 
36
}
 
37
 
 
38
# extended help for aba command -H or aba help command
 
39
cmd_ext_help()
 
40
{
 
41
    cat <<EOH
 
42
EOH
 
43
}       
 
44
 
 
45
aba_run "$@"
 
46
# arch-tag: star-merge-undo by Aaron Bentley  (23:25 Mar 10 2004)