1 # Copyright (C) 2003-2007 John Goerzen
2 # <jgoerzen@complete.org>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 global darcs
, svk
, git
, vcscmd
, hg
46 print "Failed to determine VCS to use"
48 print " VCSCMD: ", vcscmd
80 elif util
.getstdoutsafeexec(vcscmd
, ['-V'])[0].find('tla-1.0.') != -1:
83 elif util
.getstdoutsafeexec(vcscmd
, ['-V'])[0].find('tla-1.1.') != -1:
86 elif util
.getstdoutsafeexec(vcscmd
, ['-V'])[0].find('tla-1.3.') != -1:
89 elif util
.getstdoutsafeexec(vcscmd
, ['-V'])[0].find('baz Bazaar version 1.4.') != -1:
92 elif util
.getstdoutsafeexec(vcscmd
, ['-V'])[0].find('This is svk') != -1:
101 tagging_method
= 'tagging-method'
104 delete
= ['delete-tag']
105 update
= 'update --in-place .'
106 replay
= 'replay --in-place .'
111 tagging_method
= 'id-tagging-method'
121 tagging_method
= 'id-tagging-method'
124 delete
= ['delete-id']
131 tagging_method
= 'id-tagging-method'
134 delete
= ['delete-id']
141 tagging_method
= None
142 add
= ['add', '--case-ok']
150 tagging_method
= None
159 tagging_method
= None
162 delete
= ['rm', '-r']
168 tagging_method
= None