HG(COPY)

πŸ’– HG(COPY) πŸ’–

okay bestie, welcome to the hg copy manual page β€” the one and only, straight from the HG(COPY) pages, no gatekeeping here 🫢


✨ NAME ✨

hg copy β€” mark files as copied for the next commit πŸ‘‘


🌸 SYNOPSIS 🌸

hg copy [OPTION]... (SOURCE... DEST | --forget DEST...)

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this marks dest as having copies of source files. Simple as that πŸ’…

If dest is a directory, the copies get dropped into that directory. If dest is a file, then source has to be a single file β€” no bundling, one source only, that's the vibe check and it's non-negotiable.

By default this command literally copies the contents of files exactly as they exist in the working directory. Like, actual copying, for real for real. But if you run it with -A/--after, the operation just gets recorded β€” no copying is performed. Zero file movement, just the receipt 🧾

Wanna undo marking a destination file as copied? That's what --forget is for. With that option, all the given (positional) arguments get unmarked as copies. The destination file(s) will be left in place (still tracked), so nothing disappears on you πŸ™ˆ Also note: hg copy --forget behaves the same way as hg rename --forget. Same energy, different command name.

This command takes effect with the next commit by default. So don't panic if nothing looks different yet β€” it's all queued up, main character energy, waiting for its moment ⭐

Returns 0 on success, 1 if errors are encountered. That's it. That's the whole mood.


πŸ’… OPTIONS πŸ’…

  • --forget β€” unmark a destination file as copied, bestie. Undoing, but make it official.
  • -A, --after β€” record a copy that has already occurred. You did the thing, now you're just logging it πŸ“
  • --at-rev <REV> β€” (un)mark copies in the given revision. EXPERIMENTAL, so treat it like a limited-edition drop πŸ‘€
  • -f, --force β€” forcibly copy over an existing managed file. She's pushy but she gets results πŸ”₯
  • -I, --include <PATTERN[+]> β€” include names matching the given patterns ✨
  • -X, --exclude <PATTERN[+]> β€” exclude names matching the given patterns 🚫
  • -n, --dry-run β€” do not perform actions, just print output. All vibes, no consequences, the dream 🌈
[+] marked option can be specified multiple times β€” stack 'em, bestie, go off πŸ’œ

πŸŽ€ ALIASES πŸŽ€

  • cp

ok so that's the whole page, no crumbs left behind πŸ“ this was the HG(COPY) manual β€” and yep, that's the same HG(COPY) name sitting at the bottom of the original too, so consider this your little sign-off, mwah πŸ’–βœ¨