monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Issue 135 - need automate get_corresponding_path for wo


From: code
Subject: [Monotone-devel] Issue 135 - need automate get_corresponding_path for workspace rename (monotone)
Date: Thu, 20 Jan 2011 10:12:01 GMT

Hello,

A new issue has been created and assigned
to you:

135 - need automate get_corresponding_path for workspace rename
Project: monotone
Status: New
Reported by: Stephen Leake
Labels:
 Type:Incorrect Behavior
 Priority:Medium

Description:

Steps to reproduce the problem:
-------------------------------

1. in a workspace, use 'mtn mv' to rename a file, but don't commit
2. mtn automate get_corresponding_path <??workspace> <new file name> <base rev>

Expected result:
----------------
want the new name of the file in the workspace, but there is no way to get that 
from automate.

Output of `mtn version --full`: 1.0dev

Actually, there is a way; do 'mtn automate inventory', and look for the file. 
But that's cumbersome.

The current syntax of the command is:

mtn automate get_corresponding_path rev1 file rev2

'file' is the filename in rev1; the result is the filename in rev2.

In general, we need to allow either rev1 or rev2 to be the workspace (Emacs DVC 
needs both).

We could introduce two new commands:

'mtn automate get_base_rev_path <file>'

    <file> is current workspace name; return name in workspace base revision.

'mtn automate get_workspace_path <file>'

    <file> is file name in workspace base rev; return name in workspace.

--
Issue: https://code.monotone.ca/p/monotone/issues/135/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]