bugmonotone - Bugs: bug #17498, mtn co -r doesn't honor selectors

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17498: mtn co -r doesn't honor selectors

Submitted by:  Thomas Keller <tommyd>
Submitted on:  Tue 22 Aug 2006 10:00:20 AM UTC  
 
Category: command line UISeverity: 3 - Normal
Item Group: incorrect behaviorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

monotone 0.29 (base revision: 796bc8596d6c5c68828fbfb6a620a09a3af15ded)
Running on : Linux 2.6.16.21-0.13-smp #1 SMP Mon Jul 17 17:22:44 UTC 2006 i686
C++ compiler : GNU C++ version 4.1.1 20060525 (Red Hat 4.1.1-1)
C++ standard library: GNU libstdc++ version 20060525
Boost version : 1_33_1
Changes since base revision:
unknown

Tue 22 Aug 2006 10:30:40 AM UTC, comment #5:

Fixed in 9ebb083ee62b7344886b3025a4419acb11dd13c5.

Nathaniel Smith <njs>
Project Member
Tue 22 Aug 2006 10:15:47 AM UTC, comment #4:

Hmm, okay. I just clarified the error message, but was wondering whether to make it default to the branch name when it guessed the branch name. Guess I will :-).

Nathaniel Smith <njs>
Project Member
Tue 22 Aug 2006 10:13:15 AM UTC, comment #3:

hrmm... I don't put in a directory name in most cases, since the branch name is already a good directory name. And DIRECTORY is not required (at least mtn co --help tells me so).

I only stumbled across this because a normal branch based checkout didn't work because there are two heads on this branch.

Thomas Keller <tommyd>
Project Administrator
Tue 22 Aug 2006 10:05:00 AM UTC, comment #2:

Wow, that's a lousy error message.

co -r definitely works; I use it practically every day.

I think the reason it's actually complaining is that you didn't specify a destination directory. So it wants to default the directory name to match whatever you passed as -b, and you didn't pass anything, so it gives you a weird error message...

Nathaniel Smith <njs>
Project Member
Tue 22 Aug 2006 10:03:44 AM UTC, comment #1:

Hrmm... this is weird:

$ mtn co -d monotone.mtn -r <somerev>
mtn: misuse: need --branch argument for branch-based checkout

Apparently there is something wrong since the popt drop here... -r shouldn't require -b at all

Thomas Keller <tommyd>
Project Administrator
Tue 22 Aug 2006 10:00:20 AM UTC, original submission:

I recently tried to checkout the head of nvm. Apparently, checkout explicitely needs a --branch argument for that:

$ mtn co -d monotone.mtn -r h:net.venge.monotone
mtn: misuse: need --branch argument for branch-based checkout

why is this the case? Doesn't the option "-r" work here with mtn's selectors?

Thomas Keller <tommyd>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 22 Aug 2006 10:30:40 AM UTCnjsStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1