CVSQ-SWITCH(1)

πŸ“¦ version 1.11, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to CVSQ-SWITCH(1), the manual page for cvsq-switch β€” and its whole gig is literally switch between different ques for cvs. (Yes, β€œques” is the original spelling and we’re keeping it, no cap. πŸ’…) It’s giving β€œqueue era” and honestly? iconic. πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

cvsq-switch [queuename]

That’s the whole call: cvsq-switch plus an optional queuename, periodt. ✨

πŸ’– DESCRIPTION πŸ’–

So picture this: if, for some reason, not all locally stored cvs actions can be uploaded at the same time, it can be useful to store the commits in different queues.

cvsq-switch switches to the named queue, so that all cvsq commands will refer to this queue. The active queue is stored under ~/.cvsq-deferred-queues/queues, so that by a new switch you can change back to this queue. If no queue name is given, then the name "default" is assumed. If the current queue was not named by a call to cvsq-switch, its name is assumed to be "default". πŸ’–

πŸ—‚οΈ FILE STRUCTURE πŸ—‚οΈ

The file ~/.cvsq-deferred-queues/current contains the name of the current queue. If the file doesn't exist, it is generated and will contain the string "default". The directory ~/.cvsq-deferred-queues/queues contains the deferred queues, where the directory-name of a deferred queue is the quoted name of that queue.

🚨 invariant alert: it is an invariant that the directory for the queue named in current does not exist. 🚨

Upon call of cvsq-switch with a queue name different from that of the current queue, first the directory ~/.cvsq and the subdirectory of queues for the new queue are generated, if they don't exist already. Then the directory ~/.cvsq is moved to ~/.cvsq-deferred-queues/<quoted-contents-of-current-name> and the directory ~/.cvsq-deferred-queues/<quoted-queue-name> gets moved (the manpage literally says β€œis moved is moved” β€” we love a typo moment πŸ’€) to ~/.cvsq; finally the queue name is stored in current. 🫢

πŸ”€ QUOTING πŸ”€

A simple quoting mechanism is used. All but letters (a-zA-Z) and digits (0-9) are replaced by an underscore, followed by the decimal code of that character followed by another underscore. This way of quoting is a 1-1 function. Note that, in particular, "_" is quoted as "_95_". πŸ”₯

πŸ‘€ SEE ALSO πŸ‘€

  • cvsq(1) β€” the related manual page, go read it bestie. πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

the legend behind this page: Klaus Aehlig <aehlig@linta.de> πŸ’Œ


mwah πŸ’‹ β€” page date: May 7, 2007; manual/version tag: CVSQ-SWITCH(1). bye bestie, go switch those ques! 🫢

πŸ“¦ where this page comes from