001    package org.apache.maven.scm.provider.bazaar.command;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one
005     * or more contributor license agreements.  See the NOTICE file
006     * distributed with this work for additional information
007     * regarding copyright ownership.  The ASF licenses this file
008     * to you under the Apache License, Version 2.0 (the
009     * "License"); you may not use this file except in compliance
010     * with the License.  You may obtain a copy of the License at
011     *
012     * http://www.apache.org/licenses/LICENSE-2.0
013     *
014     * Unless required by applicable law or agreed to in writing,
015     * software distributed under the License is distributed on an
016     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017     * KIND, either express or implied.  See the License for the
018     * specific language governing permissions and limitations
019     * under the License.
020     */
021    
022    
023    /**
024     * Available/Used bazaar commands.
025     * <p/>
026     * These commands does not necessarily correspond to the SCM API.
027     * Eg. "check in" is translated to be "commit" and "push".
028     *
029     * @author <a href="mailto:torbjorn@smorgrav.org">Torbj�rn Eikli Sm�rgrav</a>
030     * @version $Id: BazaarConstants.java 1352801 2012-06-22 08:33:37Z olamy $
031     */
032    public class BazaarConstants
033    {
034        private BazaarConstants()
035        {
036        }
037    
038        /**
039         * Executable for Bazaar
040         */
041        public static final String EXEC = "bzr";
042    
043        /**
044         * Use to create an empty branch or before importing an existing project
045         */
046        public static final String INIT_CMD = "init";
047    
048        /**
049         * Default recursive. Common option: --dry-run and --no-recursive
050         */
051        public static final String ADD_CMD = "add";
052    
053        /**
054         * Reports the following states: added, removed, modified, unchanged, unknown
055         */
056        public static final String STATUS_CMD = "status";
057    
058        /**
059         * Make a file unversioned
060         */
061        public static final String REMOVE_CMD = "remove";
062    
063        /**
064         * Create a new copy of a branch. Alias get or clone
065         */
066        public static final String BRANCH_CMD = "branch";
067    
068        /**
069         * Commit changes into a new revision
070         */
071        public static final String COMMIT_CMD = "commit";
072    
073        /**
074         * Pull any changes from another branch into the current one
075         */
076        public static final String PULL_CMD = "pull";
077    
078        /**
079         * Show log of this branch Common option: --revision
080         */
081        public static final String LOG_CMD = "log";
082    
083        /**
084         * Show differences in workingtree. Common option: --revision
085         */
086        public static final String DIFF_CMD = "diff";
087    
088        /**
089         * Push this branch into another branch
090         */
091        public static final String PUSH_CMD = "push";
092    
093        /**
094         * Show current revision number
095         */
096        public static final String REVNO_CMD = "revno";
097    
098        /**
099         * Create a tag
100         */
101        public static final String TAG_CMD = "tag";
102    
103        /**
104         * List directory contents, bazaar style.
105         */
106        public static final String LS_CMD = "ls";
107    
108        /**
109         * Show inventory of the current working copy or a revision
110         */
111        public static final String INVENTORY_CMD = "inventory";
112    
113        public static final String NO_RECURSE_OPTION = "--no-recurse";
114    
115        public static final String NO_STRICT_OPTION = "--no-strict";
116    
117        public static final String MESSAGE_OPTION = "--message";
118    
119        public static final String REVISION_OPTION = "--revision";
120    
121        public static final String VERBOSE_OPTION = "--verbose";
122    
123        /**
124         * Option to enable recursing into subdirectories.
125         */
126        public static final String RECURSIVE_OPTION = "--recursive";
127    
128        public static final String VERSION = "version";
129    
130        public static final String CHECK = "check";
131    
132        /**
133         * Limit the output to the first N revisions.
134         */
135        public static final String LIMIT_OPTION = "--limit";
136    }