Help: backout

hg backout [OPTION]... [-r] REV

reverse effect of earlier changeset

Prepare a new changeset with the effect of REV undone in the current working directory. If no conflicts were encountered, it will be committed immediately.

If REV is the parent of the working directory, then this new changeset is committed automatically (unless --no-commit is specified).

Note:

'hg backout' cannot be used to fix either an unwanted or incorrect merge.

Examples:

  • Reverse the effect of the parent of the working directory. This backout will be committed immediately:
    hg backout -r .
    
  • Reverse the effect of previous bad revision 23:
    hg backout -r 23
    
  • Reverse the effect of previous bad revision 23 and leave changes uncommitted:
    hg backout -r 23 --no-commit
    hg commit -m "Backout revision 23"
    

By default, the pending changeset will have one parent, maintaining a linear history. With --merge, the pending changeset will instead have two parents: the old parent of the working directory and a new child of REV that simply undoes REV.

Before version 1.7, the behavior without --merge was equivalent to specifying --merge followed by 'hg update --clean .' to cancel the merge and leave the child of REV as a head to be merged separately.

See 'hg help dates' for a list of formats valid for -d/--date.

See 'hg help revert' for a way to restore files to the state of another revision.

Returns 0 on success, 1 if nothing to backout or there are unresolved files.

options ([+] can be repeated):

--merge merge with old dirstate parent after backout
--commit commit if no conflicts were encountered (DEPRECATED)
--no-commit do not commit
--parent REV parent to choose when backing out merge (DEPRECATED)
-r --rev REV revision to backout
-e --edit invoke editor on commit messages
-t --tool TOOL specify merge tool
-I --include PATTERN [+] include names matching the given patterns
-X --exclude PATTERN [+] exclude names matching the given patterns
-m --message TEXT use text as commit message
-l --logfile FILE read commit message from file
-d --date DATE record the specified date as commit date
-u --user USER record the specified user as committer

global options ([+] can be repeated):

-R --repository REPO repository root directory or name of overlay bundle file
--cwd DIR change working directory
-y --noninteractive do not prompt, automatically pick the first choice for all prompts
-q --quiet suppress output
-v --verbose enable additional output
--color TYPE when to colorize (boolean, always, auto, never, or debug)
--config CONFIG [+] set/override config option (use 'section.name=value')
--debug enable debugging output
--debugger start debugger
--encoding ENCODE set the charset encoding (default: UTF-8)
--encodingmode MODE set the charset encoding mode (default: strict)
--traceback always print a traceback on exception
--time time how long the command takes
--profile print command execution profile
--version output version information and exit
-h --help display help and exit
--hidden consider hidden changesets
--pager TYPE when to paginate (boolean, always, auto, or never) (default: auto)
PKE[!S) |- stacks2_procrad-9a171f9a450b/.hg_archival.txtUTRc/aPKE[!Sž, stacks2_procrad-9a171f9a450b/check_bcfile.pyUTRc/aPKE[!Sӆ0M9Z' stacks2_procrad-9a171f9a450b/macros.xmlUTRc/aPKE[!Sj j e'/ stacks2_procrad-9a171f9a450b/macros_process.xmlUTRc/aPKE[!SC) >/ j(stacks2_procrad-9a171f9a450b/stacks_procrad.xmlUTRc/aPKE[!S̼DL ]5stacks2_procrad-9a171f9a450b/test-data/clonefilter/Discarded1_0001.1.1.fq.gzUTRc/aPKE[!S̼DS 6stacks2_procrad-9a171f9a450b/test-data/clonefilter/Discarded1_0001.1.1.fq.single.gzUTRc/aPKE[!S=^^YB "8stacks2_procrad-9a171f9a450b/test-data/clonefilter/R1_0001.1.fq.gzUTRc/aPKE[!SY|B :stacks2_procrad-9a171f9a450b/test-data/clonefilter/R2_0001.2.fq.gzUTRc/aPKE[!Sz[KFJ _=stacks2_procrad-9a171f9a450b/test-data/clonefilter/Removed1_0001.1.1.fq.gzUTRc/aPKE[!Sz[KFU +@stacks2_procrad-9a171f9a450b/test-data/clonefilter/Removed1_0001.1.1.fq.single-alt.gzUTRc/aPKE[!S="<7Q Cstacks2_procrad-9a171f9a450b/test-data/clonefilter/Removed1_0001.1.1.fq.single.gzUTRc/aPKE[!Sf7J Estacks2_procrad-9a171f9a450b/test-data/clonefilter/Removed2_0001.2.2.fq.gzUTRc/aPKE[!SbXB 4Hstacks2_procrad-9a171f9a450b/test-data/clonefilter/clonefilter.logUTRc/aPKE[!SX\B zIstacks2_procrad-9a171f9a450b/test-data/cstacks/catalog.alleles.tsvUTRc/aPKE[!SZzd? OJstacks2_procrad-9a171f9a450b/test-data/cstacks/catalog.snps.tsvUTRc/aPKE[!S}j? )Kstacks2_procrad-9a171f9a450b/test-data/cstacks/catalog.tags.tsvUTRc/aPKE[!S62: Lstacks2_procrad-9a171f9a450b/test-data/cstacks/cstacks.logUTRc/aPKE[!S͘K<A Nstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.1.faUTRc/aPKE[!S2\PD wRstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.1.fa.gzUTRc/aPKE[!Sn38A Tstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.1.fqUTRc/aPKE[!Sh_tNI<A Wstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.2.faUTRc/aPKE[!S2kD Zstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.2.fa.gzUTRc/aPKE[!Sc;A \stacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.2.fqUTRc/aPKE[!Sn38? _stacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.fqUTRc/aPKE[!SE mastacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.rem.1.faUTRc/aPKE[!Sp H astacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.rem.1.fa.gzUTRc/aPKE[!SE vbstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.rem.2.faUTRc/aPKE[!S.>H bstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_01.rem.2.fa.gzUTRc/aPKE[!S—`3A +fstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_02.1.fqUTRc/aPKE[!Sf!3~6A chstacks2_procrad-9a171f9a450b/test-data/demultiplexed/PopA_02.2.fqUTRc/aPKE[!SZM 80@ jstacks2_procrad-9a171f9a450b/test-data/denovo_map/denovo_map.logUTRc/aPKE[!S4kD jwstacks2_procrad-9a171f9a450b/test-data/denovo_map/popmap_cstacks.tsvUTRc/aPKE[!SRN wstacks2_procrad-9a171f9a450b/test-data/denovo_map/popmap_cstacks_genotypes.tsvUTRc/aPKE[!Se.1 큘xstacks2_procrad-9a171f9a450b/test-data/gentest.shUTRc/aPKE[!SNWR? .zstacks2_procrad-9a171f9a450b/test-data/gstacks/PopA_01.alns.bamUTRc/aPKE[!Sde}? ~stacks2_procrad-9a171f9a450b/test-data/gstacks/PopA_02.alns.bamUTRc/aPKE[!S\= stacks2_procrad-9a171f9a450b/test-data/gstacks/alignments.bamUTRc/aPKE[!SO BX@ stacks2_procrad-9a171f9a450b/test-data/gstacks/catalog.calls.vcfUTRc/aPKE[!SJN< stacks2_procrad-9a171f9a450b/test-data/gstacks/catalog.fa.gzUTRc/aPKE[!SSu: ?stacks2_procrad-9a171f9a450b/test-data/gstacks/gstacks.logUTRc/aPKE[!S!{hC xstacks2_procrad-9a171f9a450b/test-data/gstacks/gstacks.log.distribsUTRc/aPKE[!SH ystacks2_procrad-9a171f9a450b/test-data/kmerfilter/Discarded1_0001.1.1.fqUTRc/aPKE[!SH stacks2_procrad-9a171f9a450b/test-data/kmerfilter/Discarded2_0001.2.2.fqUTRc/aPKE[!Sw F {stacks2_procrad-9a171f9a450b/test-data/kmerfilter/Removed1_0001.1.1.fqUTRc/aPKE[!S? :M stacks2_procrad-9a171f9a450b/test-data/kmerfilter/Removed1_0001.1.1.fq.singleUTRc/aPKE[!S(ʰF gstacks2_procrad-9a171f9a450b/test-data/kmerfilter/Removed2_0001.2.2.fqUTRc/aPKE[!S$"; stacks2_procrad-9a171f9a450b/test-data/kmerfilter/kfreq.tsvUTRc/aPKE[!SZ[ M&? *stacks2_procrad-9a171f9a450b/test-data/kmerfilter/kfreqdist.tsvUTRc/aPKE[!S͘5@ stacks2_procrad-9a171f9a450b/test-data/kmerfilter/kmerfilter.logUTRc/aPKE[!S(+@ ̭stacks2_procrad-9a171f9a450b/test-data/populations/blacklist.tsvUTRc/aPKE[!S3/ӐM Istacks2_procrad-9a171f9a450b/test-data/populations/populations.CP.joinmap.locUTRc/aPKE[!SNW97K ]stacks2_procrad-9a171f9a450b/test-data/populations/populations.fixed.phylipUTRc/aPKE[!SXVO stacks2_procrad-9a171f9a450b/test-data/populations/populations.fixed.phylip.logUTRc/aPKE[!S1 N stacks2_procrad-9a171f9a450b/test-data/populations/populations.fst_summary.tsvUTRc/aPKE[!S!TwB stacks2_procrad-9a171f9a450b/test-data/populations/populations.gtfUTRc/aPKE[!S5-GWM pstacks2_procrad-9a171f9a450b/test-data/populations/populations.haplotypes.tsvUTRc/aPKE[!S &xYLeK ;stacks2_procrad-9a171f9a450b/test-data/populations/populations.haps.genepopUTRc/aPKE[!Sf)1N stacks2_procrad-9a171f9a450b/test-data/populations/populations.haps.radpainterUTRc/aPKE[!S>9G stacks2_procrad-9a171f9a450b/test-data/populations/populations.haps.vcfUTRc/aPKE[!S_ K stacks2_procrad-9a171f9a450b/test-data/populations/populations.hapstats.tsvUTRc/aPKE[!SAr G /stacks2_procrad-9a171f9a450b/test-data/populations/populations.hzar.csvUTRc/aPKE[!SELD-F ?stacks2_procrad-9a171f9a450b/test-data/populations/populations.loci.faUTRc/aPKE[!SI| B stacks2_procrad-9a171f9a450b/test-data/populations/populations.logUTRc/aPKE[!SURDmK ޾stacks2_procrad-9a171f9a450b/test-data/populations/populations.log.distribsUTRc/aPKE[!SpJ stacks2_procrad-9a171f9a450b/test-data/populations/populations.markers.tsvUTRc/aPKE[!SK stacks2_procrad-9a171f9a450b/test-data/populations/populations.phistats.tsvUTRc/aPKE[!SQ}!3S kstacks2_procrad-9a171f9a450b/test-data/populations/populations.phistats_summary.tsvUTRc/aPKE[!SBaH stacks2_procrad-9a171f9a450b/test-data/populations/populations.plink.mapUTRc/aPKE[!Se$PH stacks2_procrad-9a171f9a450b/test-data/populations/populations.plink.pedUTRc/aPKE[!S M stacks2_procrad-9a171f9a450b/test-data/populations/populations.samples-raw.faUTRc/aPKE[!S I stacks2_procrad-9a171f9a450b/test-data/populations/populations.samples.faUTRc/aPKE[!Sa@lpK 1stacks2_procrad-9a171f9a450b/test-data/populations/populations.snps.genepopUTRc/aPKE[!SP(YG #stacks2_procrad-9a171f9a450b/test-data/populations/populations.snps.vcfUTRc/aPKE[!S%#DhH stacks2_procrad-9a171f9a450b/test-data/populations/populations.structureUTRc/aPKE[!SC)K stacks2_procrad-9a171f9a450b/test-data/populations/populations.sumstats.tsvUTRc/aPKE[!SR)*,@S stacks2_procrad-9a171f9a450b/test-data/populations/populations.sumstats_summary.tsvUTRc/aPKE[!SV9FF stacks2_procrad-9a171f9a450b/test-data/populations/populations.treemixUTRc/aPKE[!SM@>I stacks2_procrad-9a171f9a450b/test-data/populations/populations.var.phylipUTRc/aPKE[!SkM Kstacks2_procrad-9a171f9a450b/test-data/populations/populations.var.phylip.logUTRc/aPKE[!SbA@fL = Xstacks2_procrad-9a171f9a450b/test-data/procrad/R1.fa.discardsUTRc/aPKE[!SKx d4 stacks2_procrad-9a171f9a450b/test-data/procrad/R1.fqUTRc/aPKE[!SϗF= iystacks2_procrad-9a171f9a450b/test-data/procrad/R1.fq.discardsUTRc/aPKE[!Ss: e9 stacks2_procrad-9a171f9a450b/test-data/procrad/R1.fq.gzipUTRc/aPKE[!S= stacks2_procrad-9a171f9a450b/test-data/procrad/R2.fa.discardsUTRc/aPKE[!SWX4 stacks2_procrad-9a171f9a450b/test-data/procrad/R2.fqUTRc/aPKE[!SWX= Ustacks2_procrad-9a171f9a450b/test-data/procrad/R2.fq.discardsUTRc/aPKE[!S@QmMX9 stacks2_procrad-9a171f9a450b/test-data/procrad/R2.fq.gzipUTRc/aPKE[!S}SX7 stacks2_procrad-9a171f9a450b/test-data/procrad/barcodesUTRc/aPKE[!SHgA stacks2_procrad-9a171f9a450b/test-data/procrad/barcodes-duplicateUTRc/aPKE[!S߀`[yB 7stacks2_procrad-9a171f9a450b/test-data/procrad/barcodes-duplicate2UTRc/aPKE[!SW>B )stacks2_procrad-9a171f9a450b/test-data/procrad/barcodes-duplicate3UTRc/aPKE[!Se2B 0stacks2_procrad-9a171f9a450b/test-data/procrad/process_radtags.outUTRc/aPKE[!Sh9nC stacks2_procrad-9a171f9a450b/test-data/procrad/process_radtags2.outUTRc/aPKE[!S L)I stacks2_procrad-9a171f9a450b/test-data/procrad/process_radtags_paired.outUTRc/aPKE[!S^`' S9 { stacks2_procrad-9a171f9a450b/test-data/refmap/PopA_01.bamUTRc/aPKE[!SG0[KR9 'stacks2_procrad-9a171f9a450b/test-data/refmap/PopA_02.bamUTRc/aPKE[!S` ? Astacks2_procrad-9a171f9a450b/test-data/refmap/catalog.calls.vcfUTRc/aPKE[!SU<?; 'Sstacks2_procrad-9a171f9a450b/test-data/refmap/catalog.fa.gzUTRc/aPKE[!SODbKH Tstacks2_procrad-9a171f9a450b/test-data/refmap/populations.haplotypes.tsvUTRc/aPKE[!Sج#F Ustacks2_procrad-9a171f9a450b/test-data/refmap/populations.hapstats.tsvUTRc/aPKE[!SzF Vstacks2_procrad-9a171f9a450b/test-data/refmap/populations.log.distribsUTRc/aPKE[!S%xxKJE BYstacks2_procrad-9a171f9a450b/test-data/refmap/populations.markers.tsvUTRc/aPKE[!SklwF ]Zstacks2_procrad-9a171f9a450b/test-data/refmap/populations.sumstats.tsvUTRc/aPKE[!SVAN [stacks2_procrad-9a171f9a450b/test-data/refmap/populations.sumstats_summary.tsvUTRc/aPKE[!S!G %]stacks2_procrad-9a171f9a450b/test-data/shortreads/PopA_01.forward.fq.gzUTRc/aPKE[!Sٙ4< astacks2_procrad-9a171f9a450b/test-data/shortreads/PopA_01.fqUTRc/aPKE[!Sp K fstacks2_procrad-9a171f9a450b/test-data/shortreads/PopA_01.rem.forward.fq.gzUTRc/aPKE[!Sp K fstacks2_procrad-9a171f9a450b/test-data/shortreads/PopA_01.rem.reverse.fq.gzUTRc/aPKE[!SMG 5gstacks2_procrad-9a171f9a450b/test-data/shortreads/PopA_01.reverse.fq.gzUTRc/aPKE[!S8tH >lstacks2_procrad-9a171f9a450b/test-data/shortreads/process_shortreads.outUTRc/aPKE[!SB Vostacks2_procrad-9a171f9a450b/test-data/shortreads/reads.forward.fqUTRc/aPKE[!SB ostacks2_procrad-9a171f9a450b/test-data/shortreads/reads.reverse.fqUTRc/aPKE[!S ^hqB Lpstacks2_procrad-9a171f9a450b/test-data/sstacks/PopA_01.matches.tsvUTRc/aPKE[!SMCrB 6qstacks2_procrad-9a171f9a450b/test-data/sstacks/PopA_02.matches.tsvUTRc/aPKE[!SjH : !rstacks2_procrad-9a171f9a450b/test-data/sstacks/sstacks.logUTRc/aPKE[!Sz{: gtstacks2_procrad-9a171f9a450b/test-data/tsv2bam/PopA_01.bamUTRc/aPKE[!Sz{B Rystacks2_procrad-9a171f9a450b/test-data/tsv2bam/PopA_01.matches.bamUTRc/aPKE[!S: E~stacks2_procrad-9a171f9a450b/test-data/tsv2bam/PopA_02.bamUTRc/aPKE[!SB 8stacks2_procrad-9a171f9a450b/test-data/tsv2bam/PopA_02.matches.bamUTRc/aPKE[!S9uFe: 3stacks2_procrad-9a171f9a450b/test-data/tsv2bam/tsv2bam.logUTRc/aPKE[!SCXB stacks2_procrad-9a171f9a450b/test-data/ustacks/PopA_01.alleles.tsvUTRc/aPKE[!S;.j? ڊstacks2_procrad-9a171f9a450b/test-data/ustacks/PopA_01.snps.tsvUTRc/aPKE[!S|o '? ~stacks2_procrad-9a171f9a450b/test-data/ustacks/PopA_01.tags.tsvUTRc/aPKE[!ShfXB cstacks2_procrad-9a171f9a450b/test-data/ustacks/PopA_02.alleles.tsvUTRc/aPKE[!Sa x:h? 4stacks2_procrad-9a171f9a450b/test-data/ustacks/PopA_02.snps.tsvUTRc/aPK~~>