mercurial-importorig(1)

πŸ“¦ version 0.10.2, in debian bookworm

πŸ’– 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: for dpkg-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 .pc directory. 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 the default branch. you'll have to do a manual hg merge upstream later 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-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