Help composing a sample session

View: New views
5 Messages — Rating Filter:   Alert me  

Help composing a sample session

by Eric S. Raymond :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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} {archives} ~/.arch-params/ .arch-ids foo.txt ++log.example--trunk--0.1--esr@...

  tla my-id "Eric S. Raymond <esr@...>"
  mkdir {archives}
  tla make-archive esr@... {archives}/2007-example
  tla my-default-archive esr@...
  tla archives
  tla whereis-archive esr@...
  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@...

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@.../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.catb.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@...
http://lists.gnu.org/mailman/listinfo/help-gnu-arch

Re: Help composing a sample session

by Thomas Lord :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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} {archives} ~/.arch-params/ .arch-ids foo.txt ++log.example--trunk--0.1--esr@...
>
>   tla my-id "Eric S. Raymond <esr@...>"
>   mkdir {archives}
>   tla make-archive esr@... {archives}/2007-example
>   tla my-default-archive esr@...
>   tla archives
>   tla whereis-archive esr@...
>   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@...
>
> 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@.../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@...
http://lists.gnu.org/mailman/listinfo/help-gnu-arch

Re: Help composing a sample session

by Eric S. Raymond-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas Lord <lord@...>:
> 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.catb.org/~esr/">Eric S. Raymond</a>

Summary: First commit
Keywords:

This is a dummy commit message.

_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch@...
http://lists.gnu.org/mailman/listinfo/help-gnu-arch

Re: Help composing a sample session

by Thomas Lord :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:
Thomas Lord lord@...:
  
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.


_______________________________________________
Help-gnu-arch mailing list
Help-gnu-arch@...
http://lists.gnu.org/mailman/listinfo/help-gnu-arch

Re: Help composing a sample session

by Ivan Shmakov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> Eric S Raymond <esr@...> 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@...

 > 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@.../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@...
http://lists.gnu.org/mailman/listinfo/help-gnu-arch
LightInTheBox - Buy quality products at wholesale price!