Veracity Q&A home login about faq

I see lots of Unix-centric examples using paths that start with ~ and @. How can I make use of those examples on Windows?

asked Sep 14 '11 at 01:14

joshua's gravatar image

joshua
55237

edited Sep 20 '11 at 09:21

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
2.7k93355

I'm not sure what you're asking. Can you elaborate?

(Sep 14 '11 at 08:58) Ian Olsen ♦♦
1

it's just that most of the examples seem to assume we are at a command prompt in the working directory on a Unix based machine, which is not the case for lots of people, so ~/ is C:/ and @/ is where we installed veracity. can we just set the working directory with a command, i guess i just wanted some more details about paths relative or absolute as they are used by vv

(Sep 14 '11 at 10:12) joshua

The bash shell on Unix machines uses ~ as a shortcut to the user's home directory. The Windows equivalent is %HOMEDRIVE%%HOMEPATH%:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>echo %HOMEDRIVE%%HOMEPATH%
C:\Users\iolsen

A path prefixed with @ is a repository path. This is true on any platform. @/ is the root of a repository. In the Veracity repository, the code for the vv executable is in @/src/cmd.

Repository paths get mapped to disk paths when you create a working copy. I'll create a working copy for the veracity repository in a new directory called veracity:

C:\>cd %HOMEDRIVE%%HOMEPATH%
C:\Users\iolsen>vv checkout veracity veracity

Then I cd into the new working copy:

C:\Users\iolsen>cd veracity

The working copy for the veracity repository is at C:\Users\iolsen\veracity on my disk, and that's the @/ repository folder. If I change a file and ask for status, I get results expressed as repository paths:

C:\Users\iolsen\veracity>echo hi >> LICENSE.txt
C:\Users\iolsen\veracity>vv status
Modified:  @/LICENSE.txt
link

answered Sep 14 '11 at 11:40

Ian%20Olsen's gravatar image

Ian Olsen ♦♦
2.7k93355

edited Sep 14 '11 at 11:44

Paul%20Roub's gravatar image

Paul Roub ♦♦
1.6k81141

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22

Asked: Sep 14 '11 at 01:14

Seen: 802 times

Last updated: Sep 20 '11 at 09:21

powered by OSQA