1. Armin Ronacher
  2. pip

Commits

Jannis Leidel  committed 86f0563

Fixed wrong variable names in Mercurial utility functions

  • Participants
  • Parent commits b0cf201
  • Branches trunk

Comments (0)

Files changed (1)

File pip.py

View file
 
 def get_hg_tip_revision(location):
     current_rev = call_subprocess(['hg', 'tip', '--template={rev}'],
-                                  show_stdout=False, cwd=dir)
+                                  show_stdout=False, cwd=location)
     return current_rev.strip()
 
 def get_hg_tag_revs(location):
 
 def get_hg_revision(location):
     current_branch = call_subprocess(['hg', 'branch'],
-                                     show_stdout=False, cwd=dir).strip()
+                                     show_stdout=False, cwd=location).strip()
     branch_revs = get_hg_branch_revs(location)
     for branch in branch_revs:
         if current_branch == branch_revs[branch]: