|
List Info
Thread: Help composing a sample session
|
|
| Help composing a sample session |
  United States |
2008-01-09 18:10:08 |
I'm trying to write a sample Arch session for a survey paper
I'm
working on, and failing.
Here's my sequence of commands;
# Clear all arch state
rm -fr ~/.arch-params/ .arch-ids foo.txt
++log.example--trunk--0.1--esr thyrsus.com--2007-example
tla my-id "Eric S. Raymond <esr thyrsus.com>"
mkdir
tla make-archive esr thyrsus.com--2007-example
/2007-example
tla my-default-archive esr thyrsus.com--2007-example
tla archives
tla whereis-archive esr thyrsus.com--2007-example
tla archive-setup example--trunk--0.1
tla categories
tla branches example
tla versions example--trunk
tla init-tree example--trunk--0.1
echo "This is a one-liner file." >foo.txt
tla add foo.txt
tla make-log
The last command echoes this:
++log.example--trunk--0.1--esr thyrsus.com--2007-example
I then edit the log file,
The problem cones when I try to commit:
commit: tree has no patch log entries for version
tree: /home/esr/public_html/writings/version-control
version:esr thyrsus.com--2007-example/example--trunk--0.1
This log message is actually missing its trailing n, so my
next
shell prompt is run on to it.
What am I doing wrong here?
--
<a href="http://www.ca
tb.org/~esr/">Eric S. Raymond</a>
The people cannot delegate to government the power to do
anything
which would be unlawful for them to do themselves.
-- John Locke, "A Treatise Concerning Civil
Government"
_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch gnu.org
h
ttp://lists.gnu.org/mailman/listinfo/help-gnu-arch
|
|
| Re: Help composing a sample session |
  United States |
2008-01-09 19:53:16 |
Hi Eric,
I'm not up to speed on the very latest behavior of tla, but
I can give you general guidance about the confusion people
used to have around this. You have to forgive where my
memory is sketchy on some details that can easily be
cross-checked
with the code.
As I recall, a valid log file is vaguely RFC822-ish in the
sense that
it has headers, then a line with nothing but a newline, then
a body.
I *think* the body is optional, but the blank line before
the
body is not -- check the code. When I first wrote that
part, I tried
to be conservative in the sense of making it a little harder
to accidentally
commit with a log file other than the one you meant.
So, your "edit the log file" step *might* be
messing up the syntax
of the log file in such a way that it doesn't pass muster.
Take
a peek at the code for certain picture, though. Hopefully
these
suggestions will make the code easier to read.
Thanks,
-t
Eric S. Raymond wrote:
> I'm trying to write a sample Arch session for a survey
paper I'm
> working on, and failing.
>
> Here's my sequence of commands;
>
> # Clear all arch state
> rm -fr ~/.arch-params/ .arch-ids
foo.txt ++log.example--trunk--0.1--esr thyrsus.com--2007-example
>
> tla my-id "Eric S. Raymond <esr thyrsus.com>"
> mkdir
> tla make-archive esr thyrsus.com--2007-example
/2007-example
> tla my-default-archive esr thyrsus.com--2007-example
> tla archives
> tla whereis-archive esr thyrsus.com--2007-example
> tla archive-setup example--trunk--0.1
> tla categories
> tla branches example
> tla versions example--trunk
> tla init-tree example--trunk--0.1
> echo "This is a one-liner file."
>foo.txt
> tla add foo.txt
> tla make-log
>
> The last command echoes this:
>
> ++log.example--trunk--0.1--esr thyrsus.com--2007-example
>
> I then edit the log file,
>
> The problem cones when I try to commit:
>
> commit: tree has no patch log entries for version
> tree:
/home/esr/public_html/writings/version-control
> version:esr thyrsus.com--2007-example/example--trunk--0.1
>
> This log message is actually missing its trailing n,
so my next
> shell prompt is run on to it.
>
> What am I doing wrong here?
>
_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch gnu.org
h
ttp://lists.gnu.org/mailman/listinfo/help-gnu-arch
|
|
| Re: Help composing a sample session |
  United States |
2008-01-09 20:32:56 |
Thomas Lord <lord emf.net>:
> As I recall, a valid log file is vaguely RFC822-ish in
the sense that
> it has headers, then a line with nothing but a newline,
then a body.
I don't think that's the problem, then. Logfile attached.
--
<a href="http://www.ca
tb.org/~esr/">Eric S. Raymond</a>
_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch gnu.org
h
ttp://lists.gnu.org/mailman/listinfo/help-gnu-arch
|
|
|
| Re: Help composing a sample session |
  United States |
2008-01-09 22:22:35 |
|
I dunno. If you want to track it down and find out what's really
going on it should be easy to grep for the error message, run tla under
gdb, set some breakpoints, and figure out how you got there (if not
apparent from static inspection). I mean I know you know you can do
all that -- I'm just adding the information that, at this late date,
that's probably your best bet, sadly.
A guess? I dunno. Perhaps its bitrot. Andy has been quite gracefully
and generously maintaining the grounds of Arch but they have, more or
less, long lain fallow, afaict. Sorry you're finding troubles with it
but it's (with all due respect to Andy and his caretaking) largely a
long-dead project.
-t
Eric S. Raymond wrote:
thyrsus.com" type="cite">
Thomas Lord emf.net"><lord emf.net>:
As I recall, a valid log file is vaguely RFC822-ish in the sense that
it has headers, then a line with nothing but a newline, then a body.
I don't think that's the problem, then. Logfile attached.
Summary: First commit
Keywords:
This is a dummy commit message.
|
| Re: Help composing a sample session |

|
2008-01-15 07:08:07 |
>>>>> Eric S Raymond <esr snark.thyrsus.com> writes:
> I'm trying to write a sample Arch session for a survey
paper I'm
> working on, and failing.
> Here's my sequence of commands;
[...]
> tla init-tree example--trunk--0.1
Note that this command doesn't affect the archive.
> echo "This is a one-liner file."
>foo.txt
> tla add foo.txt
> tla make-log
> The last command echoes this:
> ++log.example--trunk--0.1--esr thyrsus.com--2007-example
> I then edit the log file,
> The problem cones when I try to commit:
Are you using $ tla commit here?
> commit: tree has no patch log entries for version
> tree: /home/esr/public_html/writings/version-control
> version:esr thyrsus.com--2007-example/example--trunk--0.1
> This log message is actually missing its trailing n,
so my next
> shell prompt is run on to it.
> What am I doing wrong here?
You cannot add a `patch' revision to a non-existent
version.
You're expected to use $ tla import first to create a
`base'
revision for a version instead.
I hope it's not too late for your survey.
PS. While I'd appreciate GNU Arch being used to hold the
GNU Emacs
source, it's probably just too late for GNU Arch, after all
this
breed of DVCS has emerged.
I'm proud that GNU Arch was the first DVCS for me to learn,
and
I'm sure it's mostly due to GNU Arch that I'm able to
``get
into'' any other DVCSes out there rather quickly.
_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch gnu.org
h
ttp://lists.gnu.org/mailman/listinfo/help-gnu-arch
|
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|