tests/test-strip.t
changeset 45865 d7a508a75d72
parent 45840 527ce85c2e60
child 45906 95c4cca641f6
equal deleted inserted replaced
45864:11842aad3195 45865:d7a508a75d72
     8   > }
     8   > }
     9   $ teststrip() {
     9   $ teststrip() {
    10   >     hg up -C $1
    10   >     hg up -C $1
    11   >     echo % before update $1, strip $2
    11   >     echo % before update $1, strip $2
    12   >     hg log -G -T '{rev}:{node}'
    12   >     hg log -G -T '{rev}:{node}'
    13   >     hg --traceback strip $2
    13   >     hg --traceback debugstrip $2
    14   >     echo % after update $1, strip $2
    14   >     echo % after update $1, strip $2
    15   >     hg log -G -T '{rev}:{node}'
    15   >     hg log -G -T '{rev}:{node}'
    16   >     restore
    16   >     restore
    17   > }
    17   > }
    18 
    18 
   763    * B                         6:ff43616e5d0f
   763    * B                         6:ff43616e5d0f
   764 
   764 
   765 Make sure no one adds back a -b option:
   765 Make sure no one adds back a -b option:
   766 
   766 
   767   $ hg strip -b tip
   767   $ hg strip -b tip
   768   hg strip: option -b not recognized
   768   hg debugstrip: option -b not recognized
   769   hg strip [-k] [-f] [-B bookmark] [-r] REV...
   769   hg debugstrip [-k] [-f] [-B bookmark] [-r] REV...
   770   
   770   
   771   strip changesets and all their descendants from the repository
   771   strip changesets and all their descendants from the repository
   772   
       
   773   (use 'hg help -e strip' to show help for the strip extension)
       
   774   
   772   
   775   options ([+] can be repeated):
   773   options ([+] can be repeated):
   776   
   774   
   777    -r --rev REV [+]           strip specified revision (optional, can specify
   775    -r --rev REV [+]           strip specified revision (optional, can specify
   778                               revisions without this option)
   776                               revisions without this option)
   781       --no-backup             do not save backup bundle
   779       --no-backup             do not save backup bundle
   782    -k --keep                  do not modify working directory during strip
   780    -k --keep                  do not modify working directory during strip
   783    -B --bookmark BOOKMARK [+] remove revs only reachable from given bookmark
   781    -B --bookmark BOOKMARK [+] remove revs only reachable from given bookmark
   784       --mq                    operate on patch repository
   782       --mq                    operate on patch repository
   785   
   783   
   786   (use 'hg strip -h' to show more help)
   784   (use 'hg debugstrip -h' to show more help)
   787   [255]
   785   [255]
   788 
   786 
   789   $ cd ..
   787   $ cd ..
   790 
   788 
   791 Verify bundles don't get overwritten:
   789 Verify bundles don't get overwritten: