~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai/aba/commands/emlog

  • 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
 
unset ABAFILTER
7
 
export ABAFILTER
8
 
 
9
 
. "$abadir/aba-lib"
10
 
cmd_exec()
11
 
{
12
 
  if [ -z "$EDITOR" ]; then
13
 
    echo '$EDITOR not set'
14
 
    exit 1
15
 
  fi
16
 
  if filename=`tla make-log`; then
17
 
     tla log-for-merge >> $filename 
18
 
     $EDITOR $filename 
19
 
  fi
20
 
}
21
 
cmd_desc()
22
 
{
23
 
  echo '                       emlog : creates and edits a merge log'
24
 
}
25
 
 
26
 
# short help for aba command -h, --help
27
 
cmd_help()
28
 
{
29
 
    cat <<EOH
30
 
creates and edits a merge log
31
 
usage: $abaname $(basename $0) 
32
 
 
33
 
This creates a merge log, then invokes $EDITOR to edit it.  Unfortunately,
34
 
it is not idempotent like tla make-log, so don't run it twice for the same
35
 
revision.
36
 
EOH
37
 
}
38
 
 
39
 
# extended help for aba command -H or aba help command
40
 
cmd_ext_help()
41
 
{
42
 
    cat <<EOH
43
 
EOH
44
 
}       
45
 
aba_run "$@"
46
 
 
47
 
# arch-tag: emlog by Aaron Bentley (12:12 Jan 23, 2004)