Coverage Report - com.aragost.javahg.commands.flags.LogCommandFlags
 
Classes in this File Line Coverage Branch Coverage Complexity
LogCommandFlags
26%
10/38
N/A
1
 
 1  
 /*
 2  
  * #%L
 3  
  * JavaHg
 4  
  * %%
 5  
  * Copyright (C) 2011 aragost Trifork ag
 6  
  * %%
 7  
  * Permission is hereby granted, free of charge, to any person obtaining a copy
 8  
  * of this software and associated documentation files (the "Software"), to deal
 9  
  * in the Software without restriction, including without limitation the rights
 10  
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 11  
  * copies of the Software, and to permit persons to whom the Software is
 12  
  * furnished to do so, subject to the following conditions:
 13  
  * 
 14  
  * The above copyright notice and this permission notice shall be included in
 15  
  * all copies or substantial portions of the Software.
 16  
  * 
 17  
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 18  
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 19  
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 20  
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 21  
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 22  
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 23  
  * THE SOFTWARE.
 24  
  * #L%
 25  
  */
 26  
 
 27  
 /*
 28  
  * Automatically generated based on Mercurial 2.2.1.
 29  
  *
 30  
  * Don't edit this file! Edit scripts/generate-flag-classes.py instead.
 31  
  */
 32  
 package com.aragost.javahg.commands.flags;
 33  
 
 34  
 import com.aragost.javahg.Repository;
 35  
 import com.aragost.javahg.commands.LogCommand;
 36  
 import com.aragost.javahg.internals.AbstractCommand;
 37  
 
 38  
 public abstract class LogCommandFlags extends AbstractCommand {
 39  
 
 40  
     protected LogCommandFlags(Repository repository) {
 41  4815
         super(repository);
 42  4815
     }
 43  
 
 44  
     @Override
 45  
     public final String getCommandName() {
 46  4880
         return "log";
 47  
     }
 48  
 
 49  
     public static LogCommand on(Repository repository) {
 50  4788
         return new LogCommand(repository);
 51  
     }
 52  
 
 53  
     /**
 54  
      * Set the <tt>--follow</tt> command line flag.
 55  
      * 
 56  
      * @see <a
 57  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 58  
      *      documentation</a>
 59  
      * @return this instance
 60  
      */
 61  
     public LogCommand follow() {
 62  0
         cmdAppend("--follow");
 63  0
         return (LogCommand) this;
 64  
     }
 65  
 
 66  
     /**
 67  
      * Set the <tt>--follow-first</tt> command line flag.
 68  
      * 
 69  
      * @deprecated Using this flag has been deprecated in Mercurial.
 70  
      *             The flag wont go away, but there will typically be
 71  
      *             a better way to express the same thing.
 72  
      * @see <a
 73  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 74  
      *      documentation</a>
 75  
      * @return this instance
 76  
      */
 77  
     @Deprecated
 78  
     public LogCommand followFirst() {
 79  0
         cmdAppend("--follow-first");
 80  0
         return (LogCommand) this;
 81  
     }
 82  
 
 83  
     /**
 84  
      * Set the <tt>--date</tt> command line flag.
 85  
      * 
 86  
      * @see <a
 87  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 88  
      *      documentation</a>
 89  
      * @return this instance
 90  
      */
 91  
     public LogCommand date(String date) {
 92  0
         cmdAppend("--date", date);
 93  0
         return (LogCommand) this;
 94  
     }
 95  
 
 96  
     /**
 97  
      * Set the <tt>--copies</tt> command line flag.
 98  
      * 
 99  
      * @see <a
 100  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 101  
      *      documentation</a>
 102  
      * @return this instance
 103  
      */
 104  
     public LogCommand copies() {
 105  0
         cmdAppend("--copies");
 106  0
         return (LogCommand) this;
 107  
     }
 108  
 
 109  
     /**
 110  
      * Set the <tt>--keyword</tt> command line flag.
 111  
      * 
 112  
      * @see <a
 113  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 114  
      *      documentation</a>
 115  
      * @return this instance
 116  
      */
 117  
     public LogCommand keyword(String... texts) {
 118  0
         cmdAppend("--keyword", texts);
 119  0
         return (LogCommand) this;
 120  
     }
 121  
 
 122  
     /**
 123  
      * Set the <tt>--rev</tt> command line flag.
 124  
      * 
 125  
      * @see <a
 126  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 127  
      *      documentation</a>
 128  
      * @return this instance
 129  
      */
 130  
     public LogCommand rev(String... revs) {
 131  56
         cmdAppend("--rev", revs);
 132  56
         return (LogCommand) this;
 133  
     }
 134  
 
 135  
     /**
 136  
      * Set the <tt>--removed</tt> command line flag.
 137  
      * 
 138  
      * @see <a
 139  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 140  
      *      documentation</a>
 141  
      * @return this instance
 142  
      */
 143  
     public LogCommand removed() {
 144  0
         cmdAppend("--removed");
 145  0
         return (LogCommand) this;
 146  
     }
 147  
 
 148  
     /**
 149  
      * Set the <tt>--only-merges</tt> command line flag.
 150  
      * 
 151  
      * @deprecated Using this flag has been deprecated in Mercurial.
 152  
      *             The flag wont go away, but there will typically be
 153  
      *             a better way to express the same thing.
 154  
      * @see <a
 155  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 156  
      *      documentation</a>
 157  
      * @return this instance
 158  
      */
 159  
     @Deprecated
 160  
     public LogCommand onlyMerges() {
 161  0
         cmdAppend("--only-merges");
 162  0
         return (LogCommand) this;
 163  
     }
 164  
 
 165  
     /**
 166  
      * Set the <tt>--user</tt> command line flag.
 167  
      * 
 168  
      * @see <a
 169  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 170  
      *      documentation</a>
 171  
      * @return this instance
 172  
      */
 173  
     public LogCommand user(String... users) {
 174  0
         cmdAppend("--user", users);
 175  0
         return (LogCommand) this;
 176  
     }
 177  
 
 178  
     /**
 179  
      * Set the <tt>--only-branch</tt> command line flag.
 180  
      * 
 181  
      * @deprecated Using this flag has been deprecated in Mercurial.
 182  
      *             The flag wont go away, but there will typically be
 183  
      *             a better way to express the same thing.
 184  
      * @see <a
 185  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 186  
      *      documentation</a>
 187  
      * @return this instance
 188  
      */
 189  
     @Deprecated
 190  
     public LogCommand onlyBranch(String... branches) {
 191  0
         cmdAppend("--only-branch", branches);
 192  0
         return (LogCommand) this;
 193  
     }
 194  
 
 195  
     /**
 196  
      * Set the <tt>--branch</tt> command line flag.
 197  
      * 
 198  
      * @see <a
 199  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 200  
      *      documentation</a>
 201  
      * @return this instance
 202  
      */
 203  
     public LogCommand branch(String... branches) {
 204  1
         cmdAppend("--branch", branches);
 205  1
         return (LogCommand) this;
 206  
     }
 207  
 
 208  
     /**
 209  
      * Set the <tt>--prune</tt> command line flag.
 210  
      * 
 211  
      * @see <a
 212  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 213  
      *      documentation</a>
 214  
      * @return this instance
 215  
      */
 216  
     public LogCommand prune(String... revs) {
 217  0
         cmdAppend("--prune", revs);
 218  0
         return (LogCommand) this;
 219  
     }
 220  
 
 221  
     /**
 222  
      * Set the <tt>--hidden</tt> command line flag.
 223  
      * 
 224  
      * @deprecated Using this flag has been deprecated in Mercurial.
 225  
      *             The flag wont go away, but there will typically be
 226  
      *             a better way to express the same thing.
 227  
      * @see <a
 228  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 229  
      *      documentation</a>
 230  
      * @return this instance
 231  
      */
 232  
     @Deprecated
 233  
     public LogCommand hidden() {
 234  0
         cmdAppend("--hidden");
 235  0
         return (LogCommand) this;
 236  
     }
 237  
 
 238  
     /**
 239  
      * Set the <tt>--limit</tt> command line flag.
 240  
      * 
 241  
      * @see <a
 242  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 243  
      *      documentation</a>
 244  
      * @return this instance
 245  
      */
 246  
     public LogCommand limit(int num) {
 247  4751
         cmdAppend("--limit", num);
 248  4751
         return (LogCommand) this;
 249  
     }
 250  
 
 251  
     /**
 252  
      * Set the <tt>--no-merges</tt> command line flag.
 253  
      * 
 254  
      * @see <a
 255  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 256  
      *      documentation</a>
 257  
      * @return this instance
 258  
      */
 259  
     public LogCommand noMerges() {
 260  0
         cmdAppend("--no-merges");
 261  0
         return (LogCommand) this;
 262  
     }
 263  
 
 264  
     /**
 265  
      * Set the <tt>--include</tt> command line flag.
 266  
      * 
 267  
      * @see <a
 268  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 269  
      *      documentation</a>
 270  
      * @return this instance
 271  
      */
 272  
     public LogCommand include(String... patterns) {
 273  0
         cmdAppend("--include", patterns);
 274  0
         return (LogCommand) this;
 275  
     }
 276  
 
 277  
     /**
 278  
      * Set the <tt>--exclude</tt> command line flag.
 279  
      * 
 280  
      * @see <a
 281  
      *      href="http://www.selenic.com/mercurial/hg.1.html#log">Mercurial
 282  
      *      documentation</a>
 283  
      * @return this instance
 284  
      */
 285  
     public LogCommand exclude(String... patterns) {
 286  0
         cmdAppend("--exclude", patterns);
 287  0
         return (LogCommand) this;
 288  
     }
 289  
 
 290  
 }