[yt-dev] Cleaning up my bookmarks
Matthew Turk
matthewturk at gmail.com
Thu Mar 13 07:10:45 PDT 2014
Hi all,
Now that all the main differences and changes and whatnot are merged
in, I've decided to clean up my bookmarks. In case anybody else wants
to do the same, here's my procedure.
First, I collected all the names of non-head bookmarks:
hg log -r "bookmark() and not head()" --template "{bookmarks}\n" > b1
I also backed up the full log output, just in case:
hg log -r "bookmark() and not head()" > b1
I edited this because there were a few I didn't want to delete. Then,
I deleted the rest:
for bm in `cat b1`; do hg bookmark --delete ${bm} ; done
for bm in `cat b1`; do hg push -B ${bm} ; done
Note that there's probably a way to do it in a single pass with
multiple -B arguments, but I didn't.
-Matt
More information about the yt-dev
mailing list