[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] List revision IDs without a working copy?
From: |
Richard Levitte - VMS Whacker |
Subject: |
Re: [Monotone-devel] List revision IDs without a working copy? |
Date: |
Thu, 28 Jul 2005 20:17:57 +0200 (CEST) |
In message <address@hidden> on Thu, 28 Jul 2005 08:18:32 -0700, "Steven E.
Harris" <address@hidden> said:
seh> First, the question: How can one list the revision IDs within a
seh> monotone database without having a working copy of the tree
seh> available?
Getting a list of IDs, sorted in topological order (first to last):
MONOTONE='monotone --db={YOUR_DB}'
$MONOTONE automate heads {YOUR_BRANCH} | \
$MONOTONE automate ancestors address@hidden | $MONOTONE automate toposort
address@hidden
seh> Now, the motivating scenario. I have a small project that's
seh> accumulated a half dozen revisions. One of my coworkers prepares
seh> a databases, pulls my project over, and now has a database
seh> available with a copy of my work. She now wishes to check out a
seh> working copy of the tree to play with. She doesn't want to work
seh> on the latest revision, though; in fact, she wants the first
seh> revision available in the database.
You do the above and add the following at the end of the command
string:
| head -1 | sed -e 's/^/-r /' | \
$MONOTONE co -b {YOUR_BRANCH} address@hidden {YOUR_BRANCH}
You will end up with a directory with the same name as the branch.
The little sed trickery is to make sure that address@hidden injects '-r
{revision}'.
Doing something like '-r address@hidden' doesn't work.
Cheers,
Richard
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte address@hidden
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
Re: [Monotone-devel] List revision IDs without a working copy?,
Richard Levitte - VMS Whacker <=
[Monotone-devel] Re: List revision IDs without a working copy?, Bruce Stephens, 2005/07/28