mercurial-importorig(1)
π mercurial-importorig π
okay bestie, so this is a page from the User Commands manual β it's the mercurial-importorig page and it's literally your new fave for shoving upstream tarballs into a Mercurial repo. iykyk π
πΈ NAME πΈ
mercurial-importorig β imports upstream source code tarballs into a .deb package Mercurial repository. that's the whole job. she does one thing and she ate. β¨
π¦ SYNOPSIS π¦
mercurial-importorig [option] ... tarball [tarball] ...
β¨ DESCRIPTION β¨
so what she does is: import upstream source tarballs into a Mercurial repository. π«Ά
okay and here's the part you cannot skip, no cap β the first tarball must be the main tarball, check dpkg-source(1) for the deets. the upstream sources get incorporated into the upstream branch, and then merged into the default branch. main character behavior fr fr π
and yes, you can absolutely run mercurial-importorig multiple times to import several versions β but they have to be imported sequentially, starting with the earliest version. no skipping around, babe, the timeline is the timeline. π
okay so listen: fordpkg-source(1)format 3.0 (quilt), all patches are removed before the import, and you must manually reapply and refresh the patches. and then finally you must commit the fully patched source, including the.pcdirectory. not optional. that's just the rules bestie π
π OPTIONS π
--version,-Vβ spits out the version and dips. that's it, that's the whole thing. bye π--verbose,-vβ turns the verbosity up a notch. and guess what, you can stack it β use it several times for maximum yapping π’--no-merge,-nβ nope out of merging the imported upstream source into thedefaultbranch. you'll have to do a manualhg merge upstreamlater at some point instead. and remember to unapply all patches before the merge β seriously, don't forget π
π EXAMPLES π
mercurial-importorig ../mypack_1.2.orig.tar.bz2
../mypack_1.2.orig-plugin.tar.gz
this one imports upstream source from two tarballs into the repository sitting in your current directory. and for that to work, the package has to be in dpkg source package format 3.0 (quilt) β again, see dpkg-source(1) π«Ά. after the import, both the upstream branch and the default branch will have the tag mypack_1.2. slay. β
π AUTHOR π
Jens Peter Secher <jpsecher@gmail.com> β the icon who made this π
π THANKS π
the ideas for this package originate from John Goerzen's hg-buildpackage. giving credit where credit is due, we love to see it π
π₯ SEE ALSO π₯
mercurial-importdsc(1)mercurial-buildpackage(1)mercurial-tagversion(1)mercurial-pristinetar(1)mercurial-port(1)
mercurial-importorig version 0.10.1, dating all the way back to December 2009 πΈ β and that's the whole page bestie, go import some tarballs, you got this π
β¨π¦
π¦ where this page comes from
- debian bookworm: mercurial-buildpackage 0.10.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms