fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
5dc07c9e7
master
1# fish completion for hg 2 3# Mercurial has a global switch to specify the path to the repository on which 4# to run the hg command (-R or --repository). If that is on the commandline, 5# this function echoes the given path and returns 0. Otherwise, it returns 1. 6function __fish_hg_get_repo 7set -l cmdline( commandline -p) 8if set -l match( string match -r --"(-R|--repository) +([^ ]+)" $cmdline ) 9echo $match [ 3 ] 10return 0 11else 12return 1 13end 14end 15 16# Mercurial also has a global switch to specify a directory to which to switch 17# before running the command (--cwd). If it is on the commandline, this 18# function echoes the given path and returns 0. Otherwise, it returns 1. 19function __fish_hg_get_cwd 20set -l cmdline( commandline -p) 21if set -l match( string match -r --"--cwd +([^ ]+)" $cmdline ) 22echo $match [ 2 ] 23return 0 24else 25return 1 26end 27end 28 29function __fish_hg 30set -lx HGPLAIN1 31if set -l repo( __fish_hg_get_repo ) 32set argv$argv -R$repo 33end 34if set -l cwd( __fish_hg_get_cwd ) 35set argv$argv --cwd$cwd 36end 37command hg$argv 2> /dev/null 38end 39 40function __fish_hg_commands 41set -l commands( __fish_hg debugcomplete) 42for commandin $commands 43switch $command 44case add 45printf " $command \tadd the specified files on the next commit\n" 46case addremove 47printf " $command \tadd all new files, delete all missing files\n" 48case annotate 49printf " $command \tshow changeset information by line for each file\n" 50case archive 51printf " $command \tcreate an unversioned archive of a repository revision\n" 52case backout 53printf " $command \treverse effect of earlier changeset\n" 54case bisect 55printf " $command \tsubdivision search of changesets\n" 56case bookmarks 57printf " $command \tcreate a new bookmark or list existing bookmarks\n" 58case branch 59printf " $command \tset or show the current branch name\n" 60case branches 61printf " $command \tlist repository named branches\n" 62case bundle 63printf " $command \tcreate a bundle file\n" 64case cat 65printf " $command \toutput the current or given revision of files\n" 66case churn 67printf " $command \thistogram of changes to the repository\n" 68case clone 69printf " $command \tmake a copy of an existing repository\n" 70case commit 71printf " $command \tcommit the specified files or all outstanding changes\n" 72case config 73printf " $command \tshow combined config settings from all hgrc files\n" 74case convert 75printf " $command \tconvert a foreign SCM repository to a Mercurial one\n" 76case copy 77printf " $command \tmark files as copied for the next commit\n" 78case diff 79printf " $command \tdiff repository (or selected files)\n" 80case email 81printf " $command \tsend changesets by email\n" 82case export 83printf " $command \tdump the header and diffs for one or more changesets\n" 84case extdiff 85printf " $command \tuse external program to diff repository (or selected files)\n" 86case files 87printf " $command \tlist tracked files\n" 88case forget 89printf " $command \tforget the specified files on the next commit\n" 90case graft 91printf " $command \tcopy changes from other branches onto the current branch\n" 92case grep 93printf " $command \tsearch revision history for a pattern in specified files\n" 94case heads 95printf " $command \tshow branch heads\n" 96case help 97printf " $command \tshow help for a given topic or a help overview\n" 98case histedit 99printf " $command \tinteractively edit changeset history\n" 100case identify 101printf " $command \tidentify the working directory or specified revision\n" 102case import 103printf " $command \timport an ordered set of patches\n" 104case incoming 105printf " $command \tshow new changesets found in source\n" 106case init 107printf " $command \tcreate a new repository in the given directory\n" 108case locate 109printf " $command \tlocate files matching specific patterns\n" 110case log 111printf " $command \tshow revision history of entire repository or files\n" 112case manifest 113printf " $command \toutput the current or given revision of the project manifest\n" 114case merge 115printf " $command \tmerge another revision into working directory\n" 116case outgoing 117printf " $command \tshow changesets not found in the destination\n" 118case parents 119printf " $command \tshow the parents of the working directory or revision\n" 120case paths 121printf " $command \tshow aliases for remote repositories\n" 122case phase 123printf " $command \tset or show the current phase name\n" 124case pull 125printf " $command \tpull changes from the specified source\n" 126case push 127printf " $command \tpush changes to the specified destination\n" 128case qapplied 129printf " $command \tprint the patches already applied\n" 130case qclone 131printf " $command \tclone main and patch repository at same time\n" 132case qcommit 133# deprecated 134case qdelete 135printf " $command \tremove patches from queue\n" 136case qdiff 137printf " $command \tdiff of the current patch and subsequent modifications\n" 138case qfinish 139printf " $command \tmove applied patches into repository history\n" 140case qfold 141printf " $command \tfold the named patches into the current patch\n" 142case qgoto 143printf " $command \tpush or pop patches until named patch is at top of stack\n" 144case qguard 145printf " $command \t set or print guards for a patch\n" 146case qheader 147printf " $command \tprint the header of the topmost or specified patch\n" 148case qimport 149printf " $command \timport a patch or existing changeset\n" 150case qinit 151# deprecated 152case qnew 153printf " $command \tcreate a new patch\n" 154case qnext 155printf " $command \tprint the name of the next pushable patch\n" 156case qpop 157printf " $command \tpop the current patch off the stack\n" 158case qprev 159printf " $command \tprint the name of the preceding applied patch\n" 160case qpush 161printf " $command \tpush the next patch onto the stack\n" 162case qqueue 163printf " $command \tmanage multiple patch queues\n" 164case qrecord 165printf " $command \tinteractively record a new patch\n" 166case qrefresh 167printf " $command \tupdate the current patch\n" 168case qrename 169printf " $command \trename a patch\n" 170case qrestore 171# deprecated 172case qsave 173# deprecated 174case qselect 175printf " $command \tset or print guarded patches to push\n" 176case qseries 177printf " $command \tprint the entire series file\n" 178case qtop 179printf " $command \tprint the name of the current patch\n" 180case qunapplied 181printf " $command \tprint the patches not yet applied\n" 182case rebase 183printf " $command \tmove changeset (and descendants) to a different branch\n" 184case record 185printf " $command \tinteractively select changes to commit\n" 186case recover 187printf " $command \troll back an interrupted transaction\n" 188case remove 189printf " $command \tremove the specified files on the next commit\n" 190case rename 191printf " $command \trename files; equivalent of copy + remove\n" 192case resolve 193printf " $command \tredo merges or set/view the merge status of files\n" 194case revert 195printf " $command \trestore files to their checkout state\n" 196case rollback 197# deprecated 198case root 199printf " $command \tprint the root (top) of the current working directory\n" 200case serve 201printf " $command \tstart stand-alone webserver\n" 202case shelve 203printf " $command \tsave and set aside changes from the working directory\n" 204case status 205printf " $command \tshow changed files in the working directory\n" 206case strip 207printf " $command \tstrip changesets and all their descendants from the repository\n" 208case summary 209printf " $command \tsummarize working directory state\n" 210case tag 211printf " $command \tadd one or more tags for the current or given revision\n" 212case tags 213printf " $command \tlist repository tags\n" 214case tip 215# deprecated 216case unbundle 217printf " $command \tapply one or more bundle files\n" 218case unshelve 219printf " $command \trestore a shelved change to the working directory\n" 220case update 221printf " $command \tupdate working directory (or switch revisions)\n" 222case verify 223printf " $command \tverify the integrity of the repository\n" 224case version 225printf " $command \toutput version and copyright information\n" 226case view 227printf " $command \tstart interactive history viewer\n" 228case "*" 229printf " $command \n" 230end 231end 232end 233 234function __fish_hg_labels 235if set -l labels( __fish_hg debuglabelcomplete) 236printf "%s\tlabel\n" $labels 237else 238__fish_hg_branches 239__fish_hg_bookmarks 240for linein ( __fish_hg tags) 241set -l parts( string split" " -m1 $line ) 242printf "%s\ttag\n" $parts [ 1 ] 243end 244end 245end 246 247function __fish_hg_help_topics 248set -l commands( __fish_hg debugcomplete) 249printf "%s\tcommand\n" $commands 250for linein ( __fish_hg help| string match -re'^ [a-zA-Z]' ) 251set -l parts( string trim$line | string split" " -m1 ) 252set -l topic$parts [ 1 ] 253if not contains $topic $commands 254printf "%s\thelp topic\n" $topic 255end 256end 257end 258 259function __fish_hg_config_entries 260for linein ( __fish_hg config) 261set -l parts( string split = -m1 $line ) 262printf "%s\tconfig entry\n" $parts [ 1 ] 263end 264end 265 266function __fish_hg_patches 267printf "%s\tpatch\n" ( __fish_hg qseries) 268end 269 270function __fish_hg_patch_queues 271for linein ( __fish_hg qqueue) 272 set -l parts( string split "( " -m 1 $line ) 273set -l queue (string trim $parts [ 1 ] ) 274printf " %s\t patch queue\n" $queue 275end 276end 277 278function __fish_hg_status 279set -l token (commandline -ct) 280__fish_hg status -n $argv " glob:$token **" 281end 282 283function __fish_hg_locate 284__fish_hg locate $argv 285end 286 287function __fish_hg_bookmarks 288set -l bookmarks (__fish_hg bookmarks) 289if string match -q -- " no bookmarks set" " $bookmarks [ 1 ] " 290return 291end 292for line in $bookmarks 293# Bookmarks can contain lots of different characters, including spaces, 294# but they can't contain colons. So we use that to split the line. 295set -l parts (string sub -s 4 $line | string split " :" -m 1) 296set -l parts (string split " " -r -m 1 $parts [ 1 ] ) 297set -l bookmark (string trim $parts [ 1 ] ) 298printf " %s\t bookmark\n" $bookmark 299end 300end 301 302function __fish_hg_branches 303for line in (__fish_hg branches) 304# Like with bookmarks, branches can't contain colons, so we use that for 305# splitting. 306set -l parts (string split " :" -m 1 $line ) 307set -l parts (string split " " -r -m 1 $parts [ 1 ] ) 308set -l branch (string trim $parts [ 1 ] ) 309printf " %s\t branch\n" $branch 310end 311end 312 313function __fish_hg_merge_tools 314for tool in internal:dump internal:fail internal:forcedump internal:local internal:merge internal:merge-local internal:merge-other internal:merge3 internal:other internal:prompt internal:tagmerge internal:union 315printf " $tool \t merge tool\n" 316end 317for line in (__fish_hg config merge-tools) 318set -l parts (string split " ." -m 2 $line ) 319printf " %s\t merge tool\n" $parts [ 2 ] 320end 321end 322 323function __fish_hg_sources 324for line in (__fish_hg paths) 325set -l parts (string split = $line ) 326printf " %s\t source\n" (string trim $parts [ 1 ] ) 327end 328end 329 330function __fish_hg_shelves 331printf " %s\t shelve\n" (__fish_hg shelve -ql) 332end 333 334function __fish_hg_mq_enabled 335if set -l line (__fish_hg config extensions.hgext.mq) 336set -l parts (string split " =" -m 1 $line ) 337not string match -r -q -- " ^!" $parts [ 2 ] 338return 339else 340return 1 341end 342end 343 344function __fish_hg_get_command 345set -l cmdline (commandline -pxc) 346set -e cmdline[1] 347set -l lasttoken "" 348for token in $cmdline 349# if the last token was a switch that takes an argument, we just skip 350# the current token 351if string match -r -q -- " -R| --repository | --cwd | --config | --encoding | --encodingmode | --color | --pager" $lasttoken 352set lasttoken "" 353continue 354end 355# if the current token is a switch of any kind, we can skip it 356if string match -q -- " -*" $token 357set lasttoken $token 358continue 359end 360# if we get to here, then we assume that the token is an hg command 361echo $token 362return 0 363end 364# no hg command was found 365return 1 366end 367 368function __fish_hg_using_command --argument-names cmd 369if set -l token (__fish_hg_get_command) 370string match -q -- $token $cmd 371return 372else 373return 1 374end 375end 376 377function __fish_hg_needs_command 378not __fish_hg_get_command >/dev/null 379end 380 381# global options 382complete -c hg -s R -l repository -x -d " repository root directory or name of overlay bundle file" 383complete -c hg -l cwd -x -a " ( __fish_complete_directories ( commandline -ct)) " -d " change working directory" 384complete -c hg -s y -l noninteractive -d " do not prompt, automatically pick the first choice for all prompts" 385complete -c hg -s q -l quiet -d " suppress output" 386complete -c hg -s v -l verbose -d " enable additional output" 387complete -c hg -l config -x -a " ( __fish_hg_config_entries ) " -d " set/override config option" 388complete -c hg -l debug -d " enable debugging output" 389complete -c hg -l debugger -d " start debugger" 390complete -c hg -l encoding -x -d " set the charset encoding" 391complete -c hg -l encodingmode -x -d " set the charset encoding mode" 392complete -c hg -l traceback -d " always print a traceback on exception" 393complete -c hg -l time -d " time how long the command takes" 394complete -c hg -l profile -d " print command execution profile" 395complete -c hg -l version -d " output version information and exit" 396complete -c hg -s h -l help -d " display help and exit" 397complete -c hg -l hidden -d " consider hidden changesets" 398complete -c hg -l color -x -a " true false always auto never debug" -d " when to colorize" 399complete -c hg -l pager -x -a " true false always auto never" -d " when to paginate" 400 401# subcommands 402complete -c hg -n __fish_hg_needs_command -x -a " ( __fish_hg_commands ) " 403 404# hg add 405complete -c hg -n " __fish_hg_using_command add" -f -a " ( __fish_hg_status -u) " 406complete -c hg -n " __fish_hg_using_command add" -s I -l include -x -d " include names matching the given patterns" 407complete -c hg -n " __fish_hg_using_command add" -s X -l exclude -x -d " exclude names matching the given patterns" 408complete -c hg -n " __fish_hg_using_command add" -s S -l subrepos -d " recurse into subrepositories" 409complete -c hg -n " __fish_hg_using_command add" -s n -l dry-run -d " do not perform actions, just print output" 410complete -c hg -n " __fish_hg_using_command add;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 411 412# hg addremove 413for cmd in addr addre addrem addremo addremov addremove 414complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_status -ud) " 415complete -c hg -n " __fish_hg_using_command$cmd " -s s -l similarity -x -d " guess renamed files by similarity( 0 < =s< =100) " 416complete -c hg -n " __fish_hg_using_command$cmd " -s S -l subrepos -d " recurse into subrepositories" 417complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 418complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 419complete -c hg -n " __fish_hg_using_command$cmd " -s n -l dry-run -d " do not perform actions, just print output" 420complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 421end 422 423# hg annotate 424for cmd in an ann anno annot annota annotat annotate bl bla blam blame 425complete -c hg -n " __fish_hg_using_command$cmd " -x -a " ( __fish_hg_status -cmdr) " 426complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " annotate the specified revision" 427complete -c hg -n " __fish_hg_using_command$cmd " -l no-follow -d " don't follow copies and renames" 428complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" 429complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -d "list the author (long with -v)" 430complete -c hg -n "__fish_hg_using_command $cmd" -s f -l file -d "list the filename" 431complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -d "list the date (short with -q)" 432complete -c hg -n "__fish_hg_using_command $cmd" -s n -l number -d "list the revision number (default)" 433complete -c hg -n "__fish_hg_using_command $cmd" -s c -l changeset -d "list the changeset" 434complete -c hg -n "__fish_hg_using_command $cmd" -s l -l line-number -d "show line number at the first appearance" 435complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" 436complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" 437complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" 438complete -c hg -n "__fish_hg_using_command $cmd" -s Z -l ignore-space-at-eol -d "ignore changes in whitespace at EOL" 439complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 440complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 441complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 442end 443 444# hg archive 445for cmd in ar arc arch archi archiv archive 446complete -c hg -n "__fish_hg_using_command $cmd" -l no-decode -d "do not pass files through decoders" 447complete -c hg -n "__fish_hg_using_command $cmd" -s p -l prefix -x -d "directory prefix for files in archive" 448complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to distribute" 449complete -c hg -n "__fish_hg_using_command $cmd" -s t -l type -x -a "files tar tbz2 tgz uzip zip" -d "type of distribution to create" 450complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 451complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 452complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 453complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 454end 455 456# hg backout 457for cmd in ba bac back backo backou backout 458complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 459complete -c hg -n "__fish_hg_using_command $cmd" -l merge -d "merge with old dirstate parent after backout" 460complete -c hg -n "__fish_hg_using_command $cmd" -l no-commit -d "do not commit" 461complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to backout" 462complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" 463complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 464complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 465complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 466complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 467complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" 468complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" 469complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" 470complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 471end 472 473# hg bisect 474for cmd in bi bis bise bisec bisect 475complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" 476complete -c hg -n "__fish_hg_using_command $cmd" -s r -l reset -d "reset bisect state" 477complete -c hg -n "__fish_hg_using_command $cmd" -s g -l good -d "mark changeset good" 478complete -c hg -n "__fish_hg_using_command $cmd" -s b -l bad -d "mark changeset bad" 479complete -c hg -n "__fish_hg_using_command $cmd" -s s -l skip -d "skip testing changeset" 480complete -c hg -n "__fish_hg_using_command $cmd" -s e -l extend -d "extend the bisect range" 481complete -c hg -n "__fish_hg_using_command $cmd" -s c -l command -x -d "use command to check changeset state" 482complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "do not update to target" 483complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 484end 485 486# hg bookmarks 487for cmd in bo boo book bookm bookma bookmar bookmark bookmarks 488complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_bookmarks)" 489complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d force 490complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision for bookmark action" 491complete -c hg -n "__fish_hg_using_command $cmd" -s d -l delete -d "delete a given bookmark" 492complete -c hg -n "__fish_hg_using_command $cmd" -s m -l rename -x -a "(__fish_hg_bookmarks)" -d "rename a given bookmark" 493complete -c hg -n "__fish_hg_using_command $cmd" -s i -l inactive -d "mark a bookmark inactive" 494complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 495end 496 497# hg branch 498complete -c hg -n "__fish_hg_using_command branch" -f -a "(__fish_hg_branches)" 499complete -c hg -n "__fish_hg_using_command branch" -s f -l force -d "set branch name even if it shadows an existing branch" 500complete -c hg -n "__fish_hg_using_command branch" -s C -l clean -d "reset branch name to parent branch name" 501complete -c hg -n "__fish_hg_using_command branch; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 502 503# hg branches 504for cmd in branche branches 505complete -c hg -n "__fish_hg_using_command $cmd" -s c -l closed -d "show normal and closed branches" 506complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 507end 508 509# hg bundle 510for cmd in bu bun bund bundl bundle 511complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when the destination is unrelated" 512complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be added to the destination" 513complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to bundle" 514complete -c hg -n "__fish_hg_using_command $cmd" -l base -x -a "(__fish_hg_labels)" -d "a base changeset assumed to be available at the destination" 515complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "bundle all changesets in the repository" 516complete -c hg -n "__fish_hg_using_command $cmd" -s t -l type -x -d "bundle compression type to use (default: bzip2)" 517complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 518complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 519complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 520complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 521end 522 523# hg cat 524for cmd in ca cat 525complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -cmrd)" 526complete -c hg -n "__fish_hg_using_command $cmd" -s o -l output -x -d "print output to file with formatted name" 527complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "print the given revision" 528complete -c hg -n "__fish_hg_using_command $cmd" -l decode -d "apply any matching decode filter" 529complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 530complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 531complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 532end 533 534# hg clone 535for cmd in cl clo clon clone 536complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" 537complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "the clone will include an empty working directory (only a repository)" 538complete -c hg -n "__fish_hg_using_command $cmd" -s u -l updaterev -x -d "revision, tag, or branch to check out" 539complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "do not clone everything, but include this changeset and its ancestors" 540complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "do not clone everything, but include this branch' s changesets and their ancestors" 541complete -c hg -n " __fish_hg_using_command$cmd " -l pull -d " use pull protocol to copy metadata" 542complete -c hg -n " __fish_hg_using_command$cmd " -l stream -d " clone with minimal data processing" 543complete -c hg -n " __fish_hg_using_command$cmd " -s e -l ssh -x -d " specify ssh command to use" 544complete -c hg -n " __fish_hg_using_command$cmd " -l remotecmd -x -d " specify hg command to run on the remote side" 545complete -c hg -n " __fish_hg_using_command$cmd " -l insecure -d " do not verify server certificate( ignoring web.cacerts config) " 546end 547 548# hg commit 549for cmd in com comm commi commit ci 550complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_status -amr) " 551complete -c hg -n " __fish_hg_using_command$cmd " -s A -l addremove -d " mark new/missing files as added/removed before committing" 552complete -c hg -n " __fish_hg_using_command$cmd " -l close-branch -d " mark a branch head as closed" 553complete -c hg -n " __fish_hg_using_command$cmd " -l amend -d " amend the parent of the working directory" 554complete -c hg -n " __fish_hg_using_command$cmd " -s s -l secret -d " use the secret phase for committing" 555complete -c hg -n " __fish_hg_using_command$cmd " -s e -l edit -d " invoke editor on commit messages" 556complete -c hg -n " __fish_hg_using_command$cmd " -s i -l interactive -d " use interactive mode" 557complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 558complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 559complete -c hg -n " __fish_hg_using_command$cmd " -s m -l message -x -d " use text as commit message" 560complete -c hg -n " __fish_hg_using_command$cmd " -s l -l logfile -r -d " read commit message from file" 561complete -c hg -n " __fish_hg_using_command$cmd " -s d -l date -x -d " record the specified date as commit date" 562complete -c hg -n " __fish_hg_using_command$cmd " -s u -l user -x -d " record the specified user as committer" 563complete -c hg -n " __fish_hg_using_command$cmd " -s S -l subrepos -d " recurse into subrepositories" 564complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 565end 566 567# hg config 568for cmd in conf confi config sh sho show showc showco showcon showconf showconfi showconfig 569complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_config_entries ) " 570complete -c hg -n " __fish_hg_using_command$cmd " -s u -l untrusted -d " show untrusted configuration options" 571complete -c hg -n " __fish_hg_using_command$cmd " -s e -l edit -d " edit user config" 572complete -c hg -n " __fish_hg_using_command$cmd " -s l -l local -d " edit repository config" 573complete -c hg -n " __fish_hg_using_command$cmd " -s g -l global -d " edit global config" 574complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 575end 576 577# hg convert 578for cmd in conv conve conver convert 579complete -c hg -n " __fish_hg_using_command$cmd " -s s -l source-type -x -a " hg cvs darcs git svn mtn gnuarch bzr p4" -d " source repository type" 580complete -c hg -n " __fish_hg_using_command$cmd " -s d -l dest-type -x -a " hg svn" -d " destination repository type" 581complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -d " import up to this source revision" 582complete -c hg -n " __fish_hg_using_command$cmd " -s A -l authormap -r -d " remap usernames using this file" 583complete -c hg -n " __fish_hg_using_command$cmd " -l filemap -r -d " remap file names using contents of file" 584complete -c hg -n " __fish_hg_using_command$cmd " -l full -d " apply filemap changes by converting all files again" 585complete -c hg -n " __fish_hg_using_command$cmd " -l splicemap -r -d " splice synthesized history into place" 586complete -c hg -n " __fish_hg_using_command$cmd " -l branchmap -r -d " change branch names while converting" 587complete -c hg -n " __fish_hg_using_command$cmd " -l branchsort -d " try to sort changesets by branches" 588complete -c hg -n " __fish_hg_using_command$cmd " -l datesort -d " try to sort changesets by date" 589complete -c hg -n " __fish_hg_using_command$cmd " -l sourcesort -d " preserve source changesets order" 590complete -c hg -n " __fish_hg_using_command$cmd " -l closesort -d " try to reorder closed revisions" 591end 592 593# hg copy 594for cmd in cop copy cp 595complete -c hg -n " __fish_hg_using_command$cmd " -x -a " ( __fish_hg_status -cmrd) " 596complete -c hg -n " __fish_hg_using_command$cmd " -s A -l after -d " record a copy that has already occurred" 597complete -c hg -n " __fish_hg_using_command$cmd " -s f -l force -d " forcibly copy over an existing managed file" 598complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 599complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 600complete -c hg -n " __fish_hg_using_command$cmd " -s n -l dry-run -d " do not perform actions, just print output" 601complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 602end 603 604# hg diff 605for cmd in d di dif diff 606complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_status -amr) " 607complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d revision 608complete -c hg -n " __fish_hg_using_command$cmd " -s c -l change -x -a " ( __fish_hg_labels ) " -d " change made by revision" 609complete -c hg -n " __fish_hg_using_command$cmd " -s a -l text -d " treat all files as text" 610complete -c hg -n " __fish_hg_using_command$cmd " -s g -l git -d " use git extended diff format" 611complete -c hg -n " __fish_hg_using_command$cmd " -l binary -d " generate binary diffs in git mode( default ) " 612complete -c hg -n " __fish_hg_using_command$cmd " -l nodates -d " omit dates from diff headers" 613complete -c hg -n " __fish_hg_using_command$cmd " -l noprefix -d " omit a/ and b/ prefixes from filenames" 614complete -c hg -n " __fish_hg_using_command$cmd " -s p -l show-function -d " show which function each change is in" 615complete -c hg -n " __fish_hg_using_command$cmd " -l reverse -d " produce a diff that undoes the changes" 616complete -c hg -n " __fish_hg_using_command$cmd " -s w -l ignore-all-space -d " ignore white space when comparing lines" 617complete -c hg -n " __fish_hg_using_command$cmd " -s b -l ignore-space-change -d " ignore changes in the amount of white space" 618complete -c hg -n " __fish_hg_using_command$cmd " -s B -l ignore-blank-lines -d " ignore changes whose lines are all blank" 619complete -c hg -n " __fish_hg_using_command$cmd " -s Z -l ignore-space-at-eol -d " ignore changes in whitespace at EOL" 620complete -c hg -n " __fish_hg_using_command$cmd " -s U -l unified -x -d " number of lines of context to show" 621complete -c hg -n " __fish_hg_using_command$cmd " -l stat -d " output diffstat-style summary of changes" 622complete -c hg -n " __fish_hg_using_command$cmd " -l root -x -d " produce diffs relative to subdirectory" 623complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 624complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 625complete -c hg -n " __fish_hg_using_command$cmd " -s S -l subrepos -d " recurse into subrepositories" 626complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 627end 628 629# hg email 630for cmd in em ema emai email 631complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_labels ) " 632complete -c hg -n " __fish_hg_using_command$cmd " -s g -l git -d " use git extended diff format" 633complete -c hg -n " __fish_hg_using_command$cmd " -l plain -d " omit hg patch header" 634complete -c hg -n " __fish_hg_using_command$cmd " -s o -l outgoing -d " send changes not found in the target repository" 635complete -c hg -n " __fish_hg_using_command$cmd " -s b -l bundle -d " send changes not in target as a binary bundle" 636complete -c hg -n " __fish_hg_using_command$cmd " -s B -l bookmark -x -a " ( __fish_hg_bookmarks ) " -d " send changes only reachable by given bookmark" 637complete -c hg -n " __fish_hg_using_command$cmd " -l bundlename -x -d " name of the bundle attachment file" 638complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " a revision to send" 639complete -c hg -n " __fish_hg_using_command$cmd " -l force -d " run even when remote repository is unrelated( with -b/--bundle) " 640complete -c hg -n " __fish_hg_using_command$cmd " -l base -x -a " ( __fish_hg_labels ) " -d " a base changeset to specify instead of a destination( with -b/--bundle) " 641complete -c hg -n " __fish_hg_using_command$cmd " -l intro -d " send an introduction email for a single patch" 642complete -c hg -n " __fish_hg_using_command$cmd " -l body -d " send patches as inline message text( default ) " 643complete -c hg -n " __fish_hg_using_command$cmd " -s a -l attach -d " send patches as attachments" 644complete -c hg -n " __fish_hg_using_command$cmd " -s i -l inline -d " send patches as inline attachments" 645complete -c hg -n " __fish_hg_using_command$cmd " -l bcc -x -d " email addresses of blind carbon copy recipients" 646complete -c hg -n " __fish_hg_using_command$cmd " -s c -l cc -x -d " email addresses of copy recipients" 647complete -c hg -n " __fish_hg_using_command$cmd " -l confirm -d " ask for confirmation before sending" 648complete -c hg -n " __fish_hg_using_command$cmd " -s d -l diffstat -d " add diffstat output to messages" 649complete -c hg -n " __fish_hg_using_command$cmd " -l date -x -d " use the given date as the sending date" 650complete -c hg -n " __fish_hg_using_command$cmd " -l desc -x -d " use the given file as the series description" 651complete -c hg -n " __fish_hg_using_command$cmd " -s f -l from -x -d " email address of sender" 652complete -c hg -n " __fish_hg_using_command$cmd " -s n -l test -d " print messages that would be sent" 653complete -c hg -n " __fish_hg_using_command$cmd " -s m -l mbox -r -d " write messages to mbox file instead of sending them" 654complete -c hg -n " __fish_hg_using_command$cmd " -l reply-to -x -d " email addresses replies should be sent to" 655complete -c hg -n " __fish_hg_using_command$cmd " -s s -l subject -x -d " subject of first message( intro or single patch) " 656complete -c hg -n " __fish_hg_using_command$cmd " -l in-reply-to -x -d " message identifier to reply to" 657complete -c hg -n " __fish_hg_using_command$cmd " -l flag -x -d " flags to add in subject prefixes" 658complete -c hg -n " __fish_hg_using_command$cmd " -s t -l to -x -d " email addresses of recipients" 659complete -c hg -n " __fish_hg_using_command$cmd " -s e -l ssh -x -d " specify ssh command to use" 660complete -c hg -n " __fish_hg_using_command$cmd " -l remotecmd -x -d " specify hg command to run on the remote side" 661complete -c hg -n " __fish_hg_using_command$cmd " -l insecure -d " do not verify server certificate( ignoring web.cacerts config) " 662end 663 664# hg export 665for cmd in exp expo expor export 666complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_labels ) " 667complete -c hg -n " __fish_hg_using_command$cmd " -s B -l bookmark -x -a " ( __fish_hg_bookmarks ) " -d " export changes only reachable by given bookmark" 668complete -c hg -n " __fish_hg_using_command$cmd " -s o -l output -x -d " print output to file with formatted name" 669complete -c hg -n " __fish_hg_using_command$cmd " -l switch-parent -d " diff against the second parent" 670complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " revisions to export" 671complete -c hg -n " __fish_hg_using_command$cmd " -s a -l text -d " treat all files as text" 672complete -c hg -n " __fish_hg_using_command$cmd " -s g -l git -d " use git extended diff format" 673complete -c hg -n " __fish_hg_using_command$cmd " -l binary -d " generate binary diffs in git mode( default ) " 674complete -c hg -n " __fish_hg_using_command$cmd " -l nodates -d " omit dates from diff headers" 675complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 676end 677 678# hg files 679for cmd in fi fil file files 680complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " search the repository as it is in REV" 681complete -c hg -n " __fish_hg_using_command$cmd " -s 0 -l print0 -d " end filenames with NUL, for use with xargs" 682complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 683complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 684complete -c hg -n " __fish_hg_using_command$cmd " -s S -l subrepos -d " recurse into subrepositories" 685complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 686end 687 688# hg forget 689for cmd in fo for forg forge forget 690complete -c hg -n " __fish_hg_using_command$cmd " -x -a " ( __fish_hg_status -ca) " 691complete -c hg -n " __fish_hg_using_command$cmd " -s i -l interactive -d " use interactive mode" 692complete -c hg -n " __fish_hg_using_command$cmd " -s I -l include -x -d " include names matching the given patterns" 693complete -c hg -n " __fish_hg_using_command$cmd " -s X -l exclude -x -d " exclude names matching the given patterns" 694complete -c hg -n " __fish_hg_using_command$cmd " -s n -l dry-run -d " do not perform actions, just print output" 695complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 696end 697 698# hg graft 699for cmd in gra graf graft 700complete -c hg -n " __fish_hg_using_command$cmd " -x -a " ( __fish_hg_labels ) " 701complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " revisions to graft" 702complete -c hg -n " __fish_hg_using_command$cmd " -s c -l continue -d " resume interrupted graft" 703complete -c hg -n " __fish_hg_using_command$cmd " -l stop -d " stop interrupted graft" 704complete -c hg -n " __fish_hg_using_command$cmd " -l abort -d " abort interrupted graft" 705complete -c hg -n " __fish_hg_using_command$cmd " -s e -l edit -d " invoke editor on commit messages" 706complete -c hg -n " __fish_hg_using_command$cmd " -l log -d " append graft info to log message" 707complete -c hg -n " __fish_hg_using_command$cmd " -l no-commit -d " don't commit, just apply the changes in working directory" 708complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force graft" 709complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "record the current date as commit date" 710complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "record the current user as committer" 711complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" 712complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" 713complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 714complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" 715complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 716end 717 718# hg grep 719for cmd in gre grep 720complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -cmrd)" 721complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end fields with NUL" 722complete -c hg -n "__fish_hg_using_command $cmd" -l all -d "print all revisions that match" 723complete -c hg -n "__fish_hg_using_command $cmd" -l diff -d "print all revisions when the term was introduced or removed" 724complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" 725complete -c hg -n "__fish_hg_using_command $cmd" -s f -l follow -d "follow changeset history, or file history across copies and renames" 726complete -c hg -n "__fish_hg_using_command $cmd" -s i -l ignore-case -d "ignore case when matching" 727complete -c hg -n "__fish_hg_using_command $cmd" -s l -l files-with-matches -d "print only filenames and revisions that match" 728complete -c hg -n "__fish_hg_using_command $cmd" -s n -l line-number -d "print matching line numbers" 729complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "only search files changed within revision range" 730complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -d "list the author (long with -v)" 731complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -d "list the date (short with -q)" 732complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 733complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 734complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 735end 736 737# hg heads 738for cmd in hea head heads 739complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 740complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "show only heads which are descendants of STARTREV" 741complete -c hg -n "__fish_hg_using_command $cmd" -s t -l topo -d "show topological heads only" 742complete -c hg -n "__fish_hg_using_command $cmd" -s c -l closed -d "show normal and closed branch heads" 743complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" 744complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 745end 746 747# hg help 748for cmd in hel help 749complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_help_topics)" 750complete -c hg -n "__fish_hg_using_command $cmd" -s e -l extension -d "show only help for extensions" 751complete -c hg -n "__fish_hg_using_command $cmd" -s c -l command -d "show only help for commands" 752complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keyword -d "show topics matching keyword" 753complete -c hg -n "__fish_hg_using_command $cmd" -s s -l system -x -d "show help for specific platform(s)" 754end 755 756# hg histedit 757for cmd in histe histed histedi histedit 758complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 759complete -c hg -n "__fish_hg_using_command $cmd" -l commands -r -d "read history edits from the specified file" 760complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an edit already in progress" 761complete -c hg -n "__fish_hg_using_command $cmd" -l edit-plan -d "edit remaining actions list" 762complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "don' t strip old nodes after edit is complete" 763complete -c hg -n " __fish_hg_using_command$cmd " -l abort -d " abort an edit in progress" 764complete -c hg -n " __fish_hg_using_command$cmd " -s o -l outgoing -d " changesets not found in destination" 765complete -c hg -n " __fish_hg_using_command$cmd " -s f -l force -d " force outgoing even for unrelated repositories" 766complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " first revision to be edited" 767complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 768end 769 770# hg identify 771for cmd in id ide iden ident identi identif identify 772complete -c hg -n " __fish_hg_using_command$cmd " -f -a " ( __fish_hg_sources ) " 773complete -c hg -n " __fish_hg_using_command$cmd " -s r -l rev -x -a " ( __fish_hg_labels ) " -d " identify the specified revision" 774complete -c hg -n " __fish_hg_using_command$cmd " -s n -l num -d " show local revision number" 775complete -c hg -n " __fish_hg_using_command$cmd " -s i -l id -d " show global revision id" 776complete -c hg -n " __fish_hg_using_command$cmd " -s b -l branch -d " show branch" 777complete -c hg -n " __fish_hg_using_command$cmd " -s t -l tags -d " show tags" 778complete -c hg -n " __fish_hg_using_command$cmd " -s B -l bookmarks -d " show bookmarks" 779complete -c hg -n " __fish_hg_using_command$cmd " -s e -l ssh -x -d " specify ssh command to use" 780complete -c hg -n " __fish_hg_using_command$cmd " -l remotecmd -x -d " specify hg command to run on the remote side" 781complete -c hg -n " __fish_hg_using_command$cmd " -l insecure -d " do not verify server certificate( ignoring web.cacerts config) " 782complete -c hg -n " __fish_hg_using_command$cmd ;and __fish_hg_mq_enabled" -l mq -d " operate on patch repository" 783end 784 785# hg import 786for cmd in im imp impo impor import patc patch 787complete -c hg -n " __fish_hg_using_command$cmd " -s p -l strip -x -d " directory strip option for patch" 788complete -c hg -n " __fish_hg_using_command$cmd " -s e -l edit -d " invoke editor on commit messages" 789complete -c hg -n " __fish_hg_using_command$cmd " -l no-commit -d " don't commit, just update the working directory" 790complete -c hg -n "__fish_hg_using_command $cmd" -l bypass -d "apply patch without touching the working directory" 791complete -c hg -n "__fish_hg_using_command $cmd" -l partial -d "commit even if some hunks fail" 792complete -c hg -n "__fish_hg_using_command $cmd" -l exact -d "abort if patch would apply lossily" 793complete -c hg -n "__fish_hg_using_command $cmd" -l prefix -r -d "apply patch to subdirectory" 794complete -c hg -n "__fish_hg_using_command $cmd" -l import-branch -d "use any branch information in patch (implied by --exact)" 795complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 796complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" 797complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" 798complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" 799complete -c hg -n "__fish_hg_using_command $cmd" -s s -l similarity -x -d "guess renamed files by similarity (0<=s<=100)" 800complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 801end 802 803# hg incoming 804for cmd in inc inco incom incomi incomin incoming in 805complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_sources)" 806complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even if remote repository is unrelated" 807complete -c hg -n "__fish_hg_using_command $cmd" -s n -l newest-first -d "show newest record first" 808complete -c hg -n "__fish_hg_using_command $cmd" -l bundle -r -d "file to store the bundles into" 809complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "a remote changeset intended to be added" 810complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmarks -d "compare bookmarks" 811complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "a specific branch you would like to pull" 812complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "show patch" 813complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 814complete -c hg -n "__fish_hg_using_command $cmd" -s l -l limit -x -d "limit number of changes displayed" 815complete -c hg -n "__fish_hg_using_command $cmd" -s M -l no-merges -d "do not show merges" 816complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" 817complete -c hg -n "__fish_hg_using_command $cmd" -s G -l graph -d "show the revision DAG" 818complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" 819complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 820complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 821complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 822complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 823complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 824end 825 826# hg init 827for cmd in ini init 828complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 829complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 830complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 831complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 832end 833 834# hg locate 835for cmd in loc loca locat locate 836complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "search the repository as it is in REV" 837complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end filenames with NUL, for use with xargs" 838complete -c hg -n "__fish_hg_using_command $cmd" -s f -l fullpath -d "print complete paths from the filesystem root" 839complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 840complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 841complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 842end 843 844# hg log 845for cmd in log histo histor history 846complete -c hg -n "__fish_hg_using_command "$cmd -f -a "(__fish_hg_status -cmrd)" 847complete -c hg -n "__fish_hg_using_command "$cmd -s f -l follow -d "follow changeset history, or file history across copies and renames" 848complete -c hg -n "__fish_hg_using_command "$cmd -s d -l date -x -d "show revisions matching date spec" 849complete -c hg -n "__fish_hg_using_command "$cmd -s C -l copies -d "show copied files" 850complete -c hg -n "__fish_hg_using_command "$cmd -s k -l keyword -x -d "do case-insensitive search for a given text" 851complete -c hg -n "__fish_hg_using_command "$cmd -s r -l rev -x -a "(__fish_hg_labels)" -d "show the specified revision or revset" 852complete -c hg -n "__fish_hg_using_command "$cmd -l removed -d "include revisions where files were removed" 853complete -c hg -n "__fish_hg_using_command "$cmd -s u -l user -x -d "revisions committed by user" 854complete -c hg -n "__fish_hg_using_command "$cmd -s b -l branch -x -a "(__fish_hg_branches)" -d "show changesets within the given named branch" 855complete -c hg -n "__fish_hg_using_command "$cmd -s P -l prune -x -a "(__fish_hg_labels)" -d "do not display revision or any of its ancestors" 856complete -c hg -n "__fish_hg_using_command "$cmd -s p -l patch -d "show patch" 857complete -c hg -n "__fish_hg_using_command "$cmd -s g -l git -d "use git extended diff format" 858complete -c hg -n "__fish_hg_using_command "$cmd -s l -l limit -x -d "limit number of changes displayed" 859complete -c hg -n "__fish_hg_using_command "$cmd -s M -l no-merges -d "do not show merges" 860complete -c hg -n "__fish_hg_using_command "$cmd -l stat -d "output diffstat-style summary of changes" 861complete -c hg -n "__fish_hg_using_command "$cmd -s G -l graph -d "show the revision DAG" 862complete -c hg -n "__fish_hg_using_command "$cmd -s T -l template -x -d "display with template" 863complete -c hg -n "__fish_hg_using_command "$cmd -s I -l include -x -d "include names matching the given patterns" 864complete -c hg -n "__fish_hg_using_command "$cmd -s X -l exclude -x -d "exclude names matching the given patterns" 865complete -c hg -n "__fish_hg_using_command "$cmd"; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 866end 867 868# hg manifest 869for cmd in ma man mani manif manife manifes manifest 870complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to display" 871complete -c hg -n "__fish_hg_using_command $cmd" -l all -d "list files from all revisions" 872complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 873end 874 875# hg merge 876for cmd in me mer merg merge 877complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_labels)" 878complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to merge" 879complete -c hg -n "__fish_hg_using_command $cmd" -s P -l preview -d "review revisions to merge (no merge is performed)" 880complete -c hg -n "__fish_hg_using_command $cmd" -l abort -d "abort the ongoing merge" 881complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 882complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 883end 884 885# hg outgoing 886for cmd in o ou out outg outgo outgoi outgoin outgoing 887complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_sources)" 888complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when the destination is unrelated" 889complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be included in the destination" 890complete -c hg -n "__fish_hg_using_command $cmd" -s n -l newest-first -d "show newest record first" 891complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmarks -d "compare bookmarks" 892complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to push" 893complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "show patch" 894complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 895complete -c hg -n "__fish_hg_using_command $cmd" -s l -l limit -x -d "limit number of changes displayed" 896complete -c hg -n "__fish_hg_using_command $cmd" -s M -l no-merges -d "do not show merges" 897complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" 898complete -c hg -n "__fish_hg_using_command $cmd" -s G -l graph -d "show the revision DAG" 899complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" 900complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 901complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 902complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 903complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 904complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 905end 906 907# hg parents 908for cmd in par pare paren parent parents 909complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -cmrd)" 910complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "show parents of the specified revision" 911complete -c hg -n "__fish_hg_using_command $cmd" -s T -l template -x -d "display with template" 912complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 913end 914 915# hg paths 916for cmd in path paths 917complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 918end 919 920# hg phase 921for cmd in ph pha phas phase 922complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 923complete -c hg -n "__fish_hg_using_command $cmd" -s p -l public -d "set changeset phase to public" 924complete -c hg -n "__fish_hg_using_command $cmd" -s d -l draft -d "set changeset phase to draft" 925complete -c hg -n "__fish_hg_using_command $cmd" -s s -l secret -d "set changeset phase to secret" 926complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "allow to move boundary backward" 927complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "target revision" 928complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 929end 930 931# hg pull 932for cmd in pul pull 933complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" 934complete -c hg -n "__fish_hg_using_command $cmd" -s u -l update -d "update to new branch head if new descendants were pulled" 935complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "run even when remote repository is unrelated" 936complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -d "a remote changeset intended to be added" 937complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -d "bookmark to pull" 938complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -d "a specific branch you would like to pull" 939complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 940complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 941complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 942complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 943end 944 945# hg push 946for cmd in pus push 947complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" 948complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force push" 949complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "a changeset intended to be included in the destination" 950complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "bookmark to push" 951complete -c hg -n "__fish_hg_using_command $cmd" -s b -l branch -x -a "(__fish_hg_branches)" -d "a specific branch you would like to push" 952complete -c hg -n "__fish_hg_using_command $cmd" -l new-branch -d "allow pushing a new branch" 953complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 954complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 955complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 956complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 957end 958 959# hg qapplied 960for cmd in qa qap qapp qappl qappli qapplie qapplied 961complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 962complete -c hg -n "__fish_hg_using_command $cmd" -s 1 -l last -d "show only the preceding applied patch" 963complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 964end 965 966# hg qclone 967for cmd in qcl qclo qclon qclone 968complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_sources)" 969complete -c hg -n "__fish_hg_using_command $cmd" -l pull -d "use pull protocol to copy metadata" 970complete -c hg -n "__fish_hg_using_command $cmd" -s U -l noupdate -d "do not update the new working directories" 971complete -c hg -n "__fish_hg_using_command $cmd" -l uncompressed -d "use uncompressed transfer (fast over LAN)" 972complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patches -d "location of source patch repository" 973complete -c hg -n "__fish_hg_using_command $cmd" -s e -l ssh -x -d "specify ssh command to use" 974complete -c hg -n "__fish_hg_using_command $cmd" -l remotecmd -x -d "specify hg command to run on the remote side" 975complete -c hg -n "__fish_hg_using_command $cmd" -l insecure -d "do not verify server certificate (ignoring web.cacerts config)" 976end 977 978# hg qdelete 979for cmd in qde qdel qdele qdelet qdelete qrem qremo qremov qremove qrm 980complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 981complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep patch file" 982end 983 984# hg qdiff 985for cmd in qdi qdif qdiff 986complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -mrd --rev .^)" 987complete -c hg -n "__fish_hg_using_command $cmd" -s a -l text -d "treat all files as text" 988complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 989complete -c hg -n "__fish_hg_using_command $cmd" -l binary -d "generate binary diffs in git mode (default)" 990complete -c hg -n "__fish_hg_using_command $cmd" -l nodates -d "omit dates from diff headers" 991complete -c hg -n "__fish_hg_using_command $cmd" -l noprefix -d "omit a/ and b/ prefixes from filenames" 992complete -c hg -n "__fish_hg_using_command $cmd" -s p -l show-function -d "show which function each change is in" 993complete -c hg -n "__fish_hg_using_command $cmd" -l reverse -d "produce a diff that undoes the changes" 994complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" 995complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" 996complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" 997complete -c hg -n "__fish_hg_using_command $cmd" -s Z -l ignore-space-at-eol -d "ignore changes in whitespace at EOL" 998complete -c hg -n "__fish_hg_using_command $cmd" -s U -l unified -x -d "number of lines of context to show" 999complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" 1000complete -c hg -n "__fish_hg_using_command $cmd" -l root -x -d "produce diffs relative to subdirectory" 1001complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1002complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1003end 1004 1005# hg qfinish 1006for cmd in qfi qfin qfini qfinis qfinish 1007complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels; __fish_hg_patches)" 1008complete -c hg -n "__fish_hg_using_command $cmd" -s a -l applied -d "finish all applied changesets" 1009end 1010 1011# hg qfold 1012for cmd in qfo qfol qfold 1013complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1014complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" 1015complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep folded patch files" 1016complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 1017complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" 1018end 1019 1020# hg qgoto 1021for cmd in qgo qgot qgoto 1022complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1023complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" 1024complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "overwrite any local changes" 1025complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" 1026end 1027 1028# hg qguard 1029for cmd in qgu qgua qguar qguard 1030complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1031complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list all patches and guards" 1032complete -c hg -n "__fish_hg_using_command $cmd" -s n -l none -d "drop all guards" 1033end 1034 1035# hg qheader 1036for cmd in qh qhe qhea qhead qheade qheader 1037complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1038end 1039 1040# hg qimport 1041for cmd in qim qimp qimpo qimpor qimport 1042complete -c hg -n "__fish_hg_using_command $cmd" -s e -l existing -d "import file in patch directory" 1043complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "name of patch file" 1044complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "overwrite existing files" 1045complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "place existing revisions under mq control" 1046complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 1047complete -c hg -n "__fish_hg_using_command $cmd" -s P -l push -d "qpush after importing" 1048end 1049 1050# hg qnew 1051complete -c hg -n "__fish_hg_using_command qnew" -s e -l edit -d "invoke editor on commit messages" 1052complete -c hg -n "__fish_hg_using_command qnew" -s g -l git -d "use git extended diff format" 1053complete -c hg -n "__fish_hg_using_command qnew" -s U -l currentuser -d "add \"From: <current user>\" to patch" 1054complete -c hg -n "__fish_hg_using_command qnew" -s u -l user -x -d "add \"From: <USER>\" to patch" 1055complete -c hg -n "__fish_hg_using_command qnew" -s D -l currentdate -d "add \"Date: <current date>\" to patch" 1056complete -c hg -n "__fish_hg_using_command qnew" -s d -l date -x -d "add \"Date: <DATE>\" to patch" 1057complete -c hg -n "__fish_hg_using_command qnew" -s I -l include -x -d "include names matching the given patterns" 1058complete -c hg -n "__fish_hg_using_command qnew" -s X -l exclude -x -d "exclude names matching the given patterns" 1059complete -c hg -n "__fish_hg_using_command qnew" -s m -l message -x -d "use text as commit message" 1060complete -c hg -n "__fish_hg_using_command qnew" -s l -l logfile -r -d "read commit message from file" 1061complete -c hg -n "__fish_hg_using_command qnew" -s i -l interactive -d "interactively record a new patch" 1062 1063# hg qnext 1064for cmd in qnex qnext 1065complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 1066end 1067 1068# hg qpop 1069for cmd in qpo qpop 1070complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_patches)" 1071complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "pop all patches" 1072complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" 1073complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forget any local changes to patched files" 1074complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" 1075end 1076 1077# hg qprev 1078for cmd in qpr qpre qprev 1079complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 1080end 1081 1082# hg qpush 1083for cmd in qpu qpus qpush 1084complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_patches)" 1085complete -c hg -n "__fish_hg_using_command $cmd" -l keep-changes -d "tolerate non-conflicting local changes" 1086complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "apply on top of local changes" 1087complete -c hg -n "__fish_hg_using_command $cmd" -s e -l exact -d "apply the target patch to its recorded parent" 1088complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list patch name in commit text" 1089complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "apply all patches" 1090complete -c hg -n "__fish_hg_using_command $cmd" -l move -d "reorder patch series and apply only the patch" 1091complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup copies of files" 1092end 1093 1094# hg qqueue 1095for cmd in qq qqu qque qqueu qqueue 1096complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patch_queues)" 1097complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list all available queues" 1098complete -c hg -n "__fish_hg_using_command $cmd" -l active -d "print name of active queue" 1099complete -c hg -n "__fish_hg_using_command $cmd" -s c -l create -d "create new queue" 1100complete -c hg -n "__fish_hg_using_command $cmd" -l rename -d "rename active queue" 1101complete -c hg -n "__fish_hg_using_command $cmd" -l delete -d "delete reference to queue" 1102complete -c hg -n "__fish_hg_using_command $cmd" -l purge -d "delete queue, and remove patch dir" 1103end 1104 1105# hg qrecord 1106for cmd in qrec qreco qrecor qrecord 1107complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" 1108complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "edit commit message" 1109complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 1110complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "add \"From: <current user>\" to patch" 1111complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "add \"From: <USER>\" to patch" 1112complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "add \"Date: <current date>\" to patch" 1113complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "add \"Date: <DATE>\" to patch" 1114complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1115complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1116complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 1117complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -x -d "read commit message from file" 1118complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" 1119complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" 1120complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" 1121end 1122 1123# hg qrefresh 1124for cmd in qref qrefr qrefre qrefres qrefresh 1125complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" 1126complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" 1127complete -c hg -n "__fish_hg_using_command $cmd" -s g -l git -d "use git extended diff format" 1128complete -c hg -n "__fish_hg_using_command $cmd" -s s -l short -d "refresh only files already in the patch and specified files" 1129complete -c hg -n "__fish_hg_using_command $cmd" -s U -l currentuser -d "add/update author field in patch with current user" 1130complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "add/update author field in patch with given user" 1131complete -c hg -n "__fish_hg_using_command $cmd" -s D -l currentdate -d "add/update date field in patch with current date" 1132complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "add/update date field in patch with given date" 1133complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1134complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1135complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 1136complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read commit message from file" 1137complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactively select changes to refresh" 1138end 1139 1140# hg qrename 1141for cmd in qren qrena qrenam qrename qm qmv 1142complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1143end 1144 1145# hg qselect 1146for cmd in qsel qsele qselec qselect 1147complete -c hg -n "__fish_hg_using_command $cmd" -s n -l none -d "disable all guards" 1148complete -c hg -n "__fish_hg_using_command $cmd" -s s -l series -d "list all guards in series file" 1149complete -c hg -n "__fish_hg_using_command $cmd" -l pop -d "pop to before first guarded applied patch" 1150complete -c hg -n "__fish_hg_using_command $cmd" -l reapply -d "pop, then reapply patches" 1151end 1152 1153# hg qseries 1154for cmd in qser qseri qserie qseries 1155complete -c hg -n "__fish_hg_using_command $cmd" -s m -l missing -d "print patches not in series" 1156complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 1157end 1158 1159# hg qtop 1160for cmd in qt qto qtop 1161complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 1162end 1163 1164# hg qunapplied 1165for cmd in qu qun quna qunap qunapp qunappl qunappli qunapplie qunapplied 1166complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_patches)" 1167complete -c hg -n "__fish_hg_using_command $cmd" -s 1 -l first -d "show only the preceding applied patch" 1168complete -c hg -n "__fish_hg_using_command $cmd" -s s -l summary -d "print first line of patch header" 1169end 1170 1171# hg rebase 1172for cmd in reb reba rebas rebase 1173complete -c hg -n "__fish_hg_using_command $cmd" -s s -l source -x -a "(__fish_hg_labels)" -d "rebase the specified changeset and descendants" 1174complete -c hg -n "__fish_hg_using_command $cmd" -s b -l base -x -a "(__fish_hg_labels)" -d "rebase everything from branching point of specified changeset" 1175complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "rebase these revisions" 1176complete -c hg -n "__fish_hg_using_command $cmd" -s d -l dest -x -a "(__fish_hg_labels)" -d "rebase onto the specified changeset" 1177complete -c hg -n "__fish_hg_using_command $cmd" -l collapse -d "collapse the rebased changesets" 1178complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as collapse commit message" 1179complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" 1180complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -r -d "read collapse commit message from file" 1181complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep original changesets" 1182complete -c hg -n "__fish_hg_using_command $cmd" -l keepbranches -d "keep original branch names" 1183complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 1184complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an interrupted rebase" 1185complete -c hg -n "__fish_hg_using_command $cmd" -s a -l abort -d "abort an interrupted rebase" 1186complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" 1187complete -c hg -n "__fish_hg_using_command $cmd" -l confirm -d "ask before applying actions" 1188complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1189end 1190 1191# hg record 1192for cmd in recor record 1193complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -amr)" 1194complete -c hg -n "__fish_hg_using_command $cmd" -s A -l addremove -d "mark new/missing files as added/removed before committing" 1195complete -c hg -n "__fish_hg_using_command $cmd" -l close-branch -d "mark a branch as closed, hiding it from the branch list" 1196complete -c hg -n "__fish_hg_using_command $cmd" -l amend -d "amend the parent of the working dir" 1197complete -c hg -n "__fish_hg_using_command $cmd" -s s -l secret -d "use the secret phase for committing" 1198complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1199complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1200complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as commit message" 1201complete -c hg -n "__fish_hg_using_command $cmd" -s l -l logfile -x -d "read commit message from file" 1202complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "record the specified date as commit date" 1203complete -c hg -n "__fish_hg_using_command $cmd" -s u -l user -x -d "record the specified user as committer" 1204complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 1205complete -c hg -n "__fish_hg_using_command $cmd" -s w -l ignore-all-space -d "ignore white space when comparing lines" 1206complete -c hg -n "__fish_hg_using_command $cmd" -s b -l ignore-space-change -d "ignore changes in the amount of white space" 1207complete -c hg -n "__fish_hg_using_command $cmd" -s B -l ignore-blank-lines -d "ignore changes whose lines are all blank" 1208complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1209end 1210 1211# hg recover 1212for cmd in recov recove recover 1213complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1214end 1215 1216# hg remove 1217for cmd in rem remo remov remove rm 1218complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -c)" 1219complete -c hg -n "__fish_hg_using_command $cmd" -s A -l after -d "record delete for missing files" 1220complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forget added files, delete modified files" 1221complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 1222complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1223complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1224complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" 1225complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1226end 1227 1228# hg rename 1229for cmd in ren rena renam rename mo mov move mv 1230complete -c hg -n "__fish_hg_using_command $cmd" -r -a "(__fish_hg_status -cam)" 1231complete -c hg -n "__fish_hg_using_command $cmd" -s A -l after -d "record a rename that has already occurred" 1232complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "forcibly copy over an existing managed file" 1233complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1234complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1235complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" 1236complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1237end 1238 1239# hg resolve 1240for cmd in res reso resol resolv resolve 1241complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_locate ' set:unresolved() ')" 1242complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "select all unresolved files" 1243complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list state of files needing merge" 1244complete -c hg -n "__fish_hg_using_command $cmd" -s m -l mark -x -a "(__fish_hg_locate ' set:unresolved() ')" -d "mark files as resolved" 1245complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unmark -x -a "(__fish_hg_locate ' set:resolved() ')" -d "mark files as unresolved" 1246complete -c hg -n "__fish_hg_using_command $cmd" -s n -l no-status -d "hide status prefix" 1247complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 1248complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1249complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1250complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1251end 1252 1253# hg revert 1254for cmd in rev reve rever revert 1255complete -c hg -n "__fish_hg_using_command $cmd" -f -a "(__fish_hg_status -camrd)" 1256complete -c hg -n "__fish_hg_using_command $cmd" -s a -l all -d "revert all changes when no arguments given" 1257complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "tipmost revision matching date" 1258complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revert to the specified revision" 1259complete -c hg -n "__fish_hg_using_command $cmd" -s C -l no-backup -d "do not save backup copies of files" 1260complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactively select the changes" 1261complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1262complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1263complete -c hg -n "__fish_hg_using_command $cmd" -s n -l dry-run -d "do not perform actions, just print output" 1264complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1265end 1266 1267# hg root 1268for cmd in roo root 1269complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1270end 1271 1272# hg serve 1273for cmd in se ser serv serve 1274complete -c hg -n "__fish_hg_using_command $cmd" -s A -l accesslog -r -d "name of access log file to write to" 1275complete -c hg -n "__fish_hg_using_command $cmd" -s d -l daemon -d "run server in background" 1276complete -c hg -n "__fish_hg_using_command $cmd" -l daemon-postexec -x -d "used internally by daemon mode" 1277complete -c hg -n "__fish_hg_using_command $cmd" -s E -l errorlog -r -d "name of error log file to write to" 1278complete -c hg -n "__fish_hg_using_command $cmd" -s p -l port -x -d "port to listen on (default: 8000)" 1279complete -c hg -n "__fish_hg_using_command $cmd" -s a -l address -x -d "address to listen on (default: all interfaces)" 1280complete -c hg -n "__fish_hg_using_command $cmd" -l prefix -x -d "prefix path to serve from (default: server root)" 1281complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "name to show in web pages (default: working directory)" 1282complete -c hg -n "__fish_hg_using_command $cmd" -l web-conf -r -d "name of the hgweb config file (see ' hg help hgweb')" 1283 complete -c hg -n "__fish_hg_using_command $cmd" -l pid-file -r -d "name of file to write process ID to" 1284 complete -c hg -n "__fish_hg_using_command $cmd" -l stdio -d "for remote clients" 1285 complete -c hg -n "__fish_hg_using_command $cmd" -l cmdserver -x -d "for remote clients" 1286 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l templates -x -d "web templates to use" 1287 complete -c hg -n "__fish_hg_using_command $cmd" -l style -x -d "template style to use" 1288 complete -c hg -n "__fish_hg_using_command $cmd" -s 6 -l ipv6 -d "use IPv6 in addition to IPv4" 1289 complete -c hg -n "__fish_hg_using_command $cmd" -l certificate -r -d "SSL certificate file" 1290 complete -c hg -n "__fish_hg_using_command $cmd" -l print-url -d "start and print only the URL" 1291 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 1292 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1293end 1294 1295# hg shelve 1296for cmd in she shel shelv shelve 1297 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_status -amrd)" 1298 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l addremove -d "mark new/missing files as added/removed before shelving" 1299 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unknown -d "store unknown files in the shelve" 1300 complete -c hg -n "__fish_hg_using_command $cmd" -l cleanup -d "delete all shelved changes" 1301 complete -c hg -n "__fish_hg_using_command $cmd" -l date -x -d "shelve with the specified commit date" 1302 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l delete -d "delete the named shelved change(s)" 1303 complete -c hg -n "__fish_hg_using_command $cmd" -s e -l edit -d "invoke editor on commit messages" 1304 complete -c hg -n "__fish_hg_using_command $cmd" -s l -l list -d "list current shelves" 1305 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l message -x -d "use text as shelve message" 1306 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -d "use the given name for the shelved commit" 1307 complete -c hg -n "__fish_hg_using_command $cmd" -s p -l patch -d "output patches for changes (provide the names of the shelved changes as positional arguments)" 1308 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l interactive -d "interactive mode, only works while creating a shelve" 1309 complete -c hg -n "__fish_hg_using_command $cmd" -l stat -d "output diffstat-style summary of changes" 1310 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1311 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1312 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1313end 1314 1315# hg status 1316for cmd in st sta stat statu status 1317 complete -c hg -n "__fish_hg_using_command $cmd" -s A -l all -d "show status of all files" 1318 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l modified -d "show only modified files" 1319 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l added -d "show only added files" 1320 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l removed -d "show only removed files" 1321 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l deleted -d "show only deleted (but tracked) files" 1322 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l clean -d "show only files without changes" 1323 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l unknown -d "show only unknown (not tracked) files" 1324 complete -c hg -n "__fish_hg_using_command $cmd" -s i -l ignored -d "show only ignored files" 1325 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l no-status -d "hide status prefix" 1326 complete -c hg -n "__fish_hg_using_command $cmd" -s C -l copies -d "show source of copied files" 1327 complete -c hg -n "__fish_hg_using_command $cmd" -s 0 -l print0 -d "end filenames with NUL, for use with xargs" 1328 complete -c hg -n "__fish_hg_using_command $cmd" -l rev -x -a "(__fish_hg_labels)" -d "show difference from revision" 1329 complete -c hg -n "__fish_hg_using_command $cmd" -l change -x -a "(__fish_hg_labels)" -d "list the changed files of a revision" 1330 complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" 1331 complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" 1332 complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" 1333 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1334end 1335 1336# hg strip 1337for cmd in str stri strip 1338 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 1339 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "strip specified revision" 1340 complete -c hg -n "__fish_hg_using_command $cmd" -s f -l force -d "force removal of changesets, discard uncommitted changes (no backup)" 1341 complete -c hg -n "__fish_hg_using_command $cmd" -l no-backup -d "do not save backup bundle" 1342 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "do not modify working directory during strip" 1343 complete -c hg -n "__fish_hg_using_command $cmd" -s B -l bookmark -x -a "(__fish_hg_bookmarks)" -d "remove revs only reachable from given bookmark" 1344 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1345end 1346 1347# hg summary 1348for cmd in su sum summ summa summar summary 1349 complete -c hg -n "__fish_hg_using_command $cmd" -l remote -d "check for push and pull" 1350 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1351end 1352 1353# hg tag 1354complete -c hg -n "__fish_hg_using_command tag" -s f -l force -d "force tag" 1355complete -c hg -n "__fish_hg_using_command tag" -s l -l local -d "make the tag local" 1356complete -c hg -n "__fish_hg_using_command tag" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to tag" 1357complete -c hg -n "__fish_hg_using_command tag" -l remove -d "remove a tag" 1358complete -c hg -n "__fish_hg_using_command tag" -s e -l edit -d "invoke editor on commit messages" 1359complete -c hg -n "__fish_hg_using_command tag" -s m -l message -x -d "use <text> as commit message" 1360complete -c hg -n "__fish_hg_using_command tag" -s d -l date -x -d "record the specified date as commit date" 1361complete -c hg -n "__fish_hg_using_command tag" -s u -l user -x -d "record the specified user as committer" 1362complete -c hg -n "__fish_hg_using_command tag; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1363 1364# hg tags 1365complete -c hg -n "__fish_hg_using_command tags; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1366 1367# hg unbundle 1368for cmd in un unb unbu unbun unbund unbundl unbundle 1369 complete -c hg -n "__fish_hg_using_command $cmd" -s u -l update -d "update to new branch head if changesets were unbundled" 1370 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1371end 1372 1373# hg unshelve 1374for cmd in uns unsh unshe unshel unshelv unshelve 1375 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_shelves)" 1376 complete -c hg -n "__fish_hg_using_command $cmd" -s a -l abort -d "abort an incomplete unshelve operation" 1377 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l continue -d "continue an incomplete unshelve operation" 1378 complete -c hg -n "__fish_hg_using_command $cmd" -s k -l keep -d "keep shelve after unshelving" 1379 complete -c hg -n "__fish_hg_using_command $cmd" -s n -l name -x -a "(__fish_hg_shelves)" -d "restore shelved change with given name" 1380 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 1381 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1382end 1383 1384# hg update 1385for cmd in up upd upda updat update che chec check checko checkou checkout co 1386 complete -c hg -n "__fish_hg_using_command $cmd" -x -a "(__fish_hg_labels)" 1387 complete -c hg -n "__fish_hg_using_command $cmd" -s C -l clean -d "discard uncommitted changes (no backup)" 1388 complete -c hg -n "__fish_hg_using_command $cmd" -s c -l check -d "require clean working directory" 1389 complete -c hg -n "__fish_hg_using_command $cmd" -s m -l merge -d "merge uncommitted changes" 1390 complete -c hg -n "__fish_hg_using_command $cmd" -s d -l date -x -d "tipmost revision matching date" 1391 complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d revision 1392 complete -c hg -n "__fish_hg_using_command $cmd" -s t -l tool -x -a "(__fish_hg_merge_tools)" -d "specify merge tool" 1393 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1394end 1395 1396# hg verify 1397for cmd in veri verif verify 1398 complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" 1399end